Hi Dhanushka
> struct
> {
> Char *SoldToParty;
> Char *Address;
> }OrderInfoType;
>
> if i want to retrieve the SoldToParty member, and show
> it on a form field, what are the necessary steps?
1) get a pointer to the database record and cast it to the proper struct:
ptr = (StructPtr) DmGetRecord (DmRef, RecNr);
2) display data
however the struct you described above is unusable to store / retrieve strings to /
from a Palm DB
you store the addresses of the data to the DB, not the data themselves. and this
addresses will surely be invalid next time you read them from the DB.
structs are good to store fixed size data (like INT16, UINT32, ...) to a DB, but not
for saving strings of variable length.
> are there any sample codes for this as well?
http://oasis.palm.com/dev/kb/browse.cfm?type=7
by(e)
Stephan
--
PGP Fingerprint: 0090 E02F 39A8 F2AF 6A79 43D7 B847 C26D 108E E2F0
PGP PublicKey: http://www.unet.univie.ac.at/~a9526342/sveigl.asc
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/