Results 1 to 4 of 4

Thread: creating session in VB6 using CDONTS

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    6

    creating session in VB6 using CDONTS

    im trying to create inbox application in VB6. so created an object ses as CDONTS.Session. when im trying to create a session using following code

    VB Code:
    1. ses("uname") = txtUName.Text

    it showing a error message

    Compile error:
    Can't assign to readonly property

    Any body please help me.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: creating session in VB6 using CDONTS

    What is ses defined as?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    6

    Re: creating session in VB6 using CDONTS

    i have created a session object for CDONTS as

    VB Code:
    1. Dim ses As CDONTS.Session

    and i want to create Session for username & password in login form. when im trying to do this

    VB Code:
    1. ses.Session("uname") = txtUName.Text

    it showing an error message
    Run-time error '-2147219963(80040605)';
    Method 'Session' of the object 'ISession' failed.

    Actually i want to create inbox by using this session. help me.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: creating session in VB6 using CDONTS

    I'm not that familiar with CDO, but is .Session writable?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width