Right now I am trying to read my records in the database.
but when I print them out, I could only see the empty string.

I have successfully added them coz I went to click on the info, then click 
on the records belonging to my program.

I also use the DmNumRecord to count the the number of records in the 
database.

But what is wrong with DmQueryRecord?
Err ReadModules(int index)
{
Char *ptr;
MemHandle h;
Err err;

err = OpenDB();
if(err)
return err;

else
{
h = DmQueryRecord(dbPtr,index);
if(!h)
return DmGetLastErr();

else
{
ptr = (Char*) MemHandleLock(h);
PrintString(ptr);
MemHandleUnlock(h);
}
}

return 0;
}

NB : my OpenDB() is opening and creating and finding the database.



Thanks in advance

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
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