> I don't see how you did it exactly... Did you close the database A after you > first finished reading it? > > Looks like you are opening the database in ReadWrite mode, I am not sure if > you > are opening it twice with that. That might be a problem. > > If you look at the OpenDB code, you are returning NULL at several places. You > may want to check which return is returning NULL. > > Another bad practice is that your OpenDB is modifying the global dbPtr > directly > and the calling code has "dbPtr=OpenDB()". You can clean it up by adding > "DmOpenRef dbPtr" inside OpenDB function. The local variable will shadow the > global, so it won't be modified directly. And better yet, use a different > name > to avoid confusion. > > Max > --- Low Pui Kuen <[EMAIL PROTECTED]> wrote: > > > > Hi Max, > > > > I have set the pointer of the database to NULL. > > I went to read the all the records from the database A, set the pointer to > > NULL and went to read all the records from database B and set NULL to the > > same pointer as well. It works but > > > > When I decide to open the database A again to add all the records to the > > database A, I received a NULL value for the databasepointer. Why the > pointer > > could not point back to the database A again? > > > > Thanks alot...I really need your help as I am been stuck here for a whole > > day. > > > >
===== http://www.weirdwww.com/ __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
