I don't have much experience with Database on Palm but I think it is the
index position at which you add the record!

-----Original Message-----
From: Dana Long [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 2:26 PM
To: Palm Developer Forum
Subject: Searching for a record

Greetings,

Kind of a beginner question here...

I have to find records in a database based on two character fields in 
the record. In other words these two fields together constitute a 
primary key. Is my only choice to iterate through the entire database? 
Something like this?

for (int i = 0; i < DmNumRecords(); i++) {
    memHandle =   DmGetRecord(dmRef);
    // Evaluate the fields
}

I see the function DmFindRecordByID(...) but I don't understand what the

Unique ID value is.

Thanks,

Dana


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



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

Reply via email to