Hello all.
I've got these books on programming Palm Pilots.
-Palm Database Programming - The Complete Developer's Guide - Wiley
-Palm Programming - The Developer's Guide - O'Reilly
-Palm OS Programming from the Ground Up - Osborne
-Teach Yourself Palm Programming in 24 Hours - SAMS
I think I've listed them in order of preference, but they all have something,
and they all lack things.
I'm using the full version of CodeWarrior for Palm (in case you later wonder).
Does anyone know of a FULL example of how to use TblSetLoadDataProcedure?
I'd like to put a handle (with offset and size) directly from the database in
textTableItem, but I am getting an empty column no matter how I try
to slice it.
This is the code I am using now.
I'm sure the record being return by DmQueryRecord is correct.
The #define part comes from Palm Database Programming (Wiley).
I'm also pretty sure I'll need to unassign the handles (somehow) during
the FrmCloseEvent to keep the database record from being deleted, but
that hasn't become an issue.
======my current code.
h = DmQueryRecord(rDB,index);
if ( fld != NULL )
{
#define MAXCHARS 39
FldSetMaxChars(fld, MAXCHARS);
}
FldSetTextHandle(fld,h);
*handle = *h; // I tried assign *handle to h also, didn't work :(
*offset = DBR_TITLE_START;
*size = DBR_TITLE_SIZE;
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/