From: "KEN" <[EMAIL PROTECTED]>
> I cannot get the values of record in the database from the code I wrote
> using both the database file.
> So I guess my code must have some problems but unfortunately I even don't
> know what are they.
>
> static readFunction()
> {
>      Path                path;
>      MemHandle    recordH;
>      UInt16            i = 0;
>
>      recordH = DmQueryRecord(gDB, 0);    //Read the 1st record
>      MemHandleLock(recordH);
>
>      // Try to get the values in the record
>      gMinX = path.minX;
>      gMinY = path.minY;
>      numCoord = path.noOfCoordinate;
>
At the risk of offending you, what Palm text book or reference are you
basing
this code on?  It's wrong in too many ways to start explaining to you.

The pointer returned by MemHandleLock is thrown away and the path
variable, which I can't see ever being set to anything, is then used to
retrieve
the values.  I can understand why other contributors to this group have
shown signs of impatience with your questions.

I suggest that you start by making small changes to a working sample
rather than stepping boldly into the deep end of the pool by trying to
create a complex app from scratch.

Chris Tutty


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

Reply via email to