Hello,
I am using c and codewarroir 7 and am trying to create a list at runtime. I 
have found some example code of how to do this with a stringtable already 
created in a PilRC definition, but it is not really what I need. The strings 
that I wish to put into a list have been created by the user and are stored 
as single records in a database. It is easy enough to take each string out 
of the database but I am not sure how to construct the list from the strings 
that I have retrieved. The code that I have come up with so far is:


DatabaseHandle = DmOpenDatabaseByTypeCreator('DATA', 'PS01', 
dmModeReadOnly);
      NumRecords = DmNumRecords(DatabaseHandle);
      for (index = 0; index < NumRecords; index++)
      {
       RecordHandle = DmQueryRecord(DatabaseHandle, index);
       RecordPointer = MemHandleLock(RecordHandle);

       MemHandleUnlock(RecordHandle);

     // Where the list construction should go.
      }

DmCloseDatabase(DatabaseHandle);


Could anyone tell me where I could find an example of how to create this 
list at runtime, or provide me with some hints.
Thank you,
Benjamin Brazil.





_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.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