>DmSet (appInfoP,0,20,*"ABCDEFGHIJKLMNOPQRST");

here u are writing value of 20 characters and ur string must be null
terminated. Keep an extra bit for null termination

check if DmSet is returning errNone or not. May be writing into database
is not successful.

>but when I try to load that record into a table:
>recordH = DmQueryRecord(StoreDB, recordNum);

the record u are requesting for does not exist which means it was not
properly written.

>it never finds the data in any of the records. Why is that, what am
I doing
wrong? recordH is always null. 

instead of DmSet() try using DmWrite(). Before writing, check if u are
exceeding the record size of ur db using DmWriteCheck(). Sometimes while
writing, if u exceed the bounds of the record then write won't be successful.

Anuradha

__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to