Why does my object lose it's data


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Why does my object lose it's data

  1. #1
    Veign Guest

    Re: Why does my object lose it's data

    Do you have any code to show? (both the Class Object and the calling
    routine)

    --
    Veign
    www.veign.com
    Code Samples & Sample Projects
    http://www.veign.com/information/app.../info_app.html
    Submit Your Best Code (you keep the rights)
    http://www.veign.com/information/app...de_submit.html
    ---------
    "Carl" <cjenkins@secondfederal.com> wrote in message
    news:3d20acb9$1@10.1.10.29...
    >
    > Hello,
    >
    > I am accessing a MS Access database using ADO and assinging fields to my
    > Employee object such as SSN, FNAME, LNAME and such. I run through the

    debugger
    > and it's being assigned properly.
    >
    > When I raise and event datachanged and call on my object to show my the

    values
    > I have stored they are gone?
    >
    > PLEASE HELP!




  2. #2
    Carl Guest

    Why does my object lose it's data


    Hello,

    I am accessing a MS Access database using ADO and assinging fields to my
    Employee object such as SSN, FNAME, LNAME and such. I run through the debugger
    and it's being assigned properly.

    When I raise and event datachanged and call on my object to show my the values
    I have stored they are gone?

    PLEASE HELP!

  3. #3
    Carl Guest

    Re: Why does my object lose it's data


    Thanks for wanting to help.
    I figured it out though. I am still new to programming so I am making beginner
    mistakes.

    I was using two different instances of the same object.

    Thanks Veign


    "Veign" <NOSPAMinveign@veign.com> wrote:
    >Do you have any code to show? (both the Class Object and the calling
    >routine)
    >
    >--
    >Veign
    >www.veign.com
    >Code Samples & Sample Projects
    >http://www.veign.com/information/app.../info_app.html
    >Submit Your Best Code (you keep the rights)
    >http://www.veign.com/information/app...de_submit.html
    >---------
    >"Carl" <cjenkins@secondfederal.com> wrote in message
    >news:3d20acb9$1@10.1.10.29...
    >>
    >> Hello,
    >>
    >> I am accessing a MS Access database using ADO and assinging fields to

    my
    >> Employee object such as SSN, FNAME, LNAME and such. I run through the

    >debugger
    >> and it's being assigned properly.
    >>
    >> When I raise and event datachanged and call on my object to show my the

    >values
    >> I have stored they are gone?
    >>
    >> PLEASE HELP!

    >
    >



  4. #4
    Michael Culley Guest

    Re: Why does my object lose it's data

    > I was using two different instances of the same object.

    Common problem.

    --
    Michael Culley
    www.vbdotcom.com



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center