>Normally, I need to create the record structure for each database,
>but that will increase the program size and do not common. the more 
>database I access ,the >more record structure I must create. so I 
>wonder whether I can get the fields value directly if I >know the 
>fields type and length of the database, instead of create the record 
>structure.

Instead of declaring record structures as static variables, you can 
define them but create them at runtime as dynamic memory structures 
using MemPtrNew or MemHandleNew. That way they don't take up any 
space in your PRC file.

If you do know the field types and lengths, you can access them 
directly: get the record (DmGetRecord), lock it (MemHandleLock), 
access the data, unlock the record (MdmHandleUnlock).

Regards,
Steve Mann
-- 
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461              805.784.9462 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.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