Hello people.
First of all, I apologize if this message got posted more than once. I've
been having problems posting to the forum today. The, as for my problem...
I'm working on an application that uses a table in one of its forms. This
table has a coloumn that uses fields to gather and display data. The field
load data callback function is passed a pointer to the FieldType in the
cell
which allows me to allocate a buffer and place text in there when the table
is being loaded. However, my problem arises when I have to free the chunks
allocated to the fields: how do I get a pointer to the field in the table's
cell? If the field is edited I could free it in my TblSaveDataFuncType,
but what about the other fields?
The cell is initialized with TblSetItemStyle(tablePtr, row, col,
textTableItem). I figured that TableItemType's ptr field would contain a
pointer to a field (FieldType*) so I tried using TblGetItemPtr, casting to
FieldType* and using that, but the pointer doesn't refer to a FieldType
structure and calls to Fld* functions crash.
Any help would be appreciated. Thanks in advance.
Luca
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/