I have run into a little weirdness w/ preparing some old code for OS 5 compatibility. In the old code a pointer to the current field of a table is retrieved by this:

fld = &table->currentField;

Works fine when compiled under SDK 4.0 or lower. My substitution of

fld = (FieldType*)TblGetCurrentField(table);

returns 0x00000000, but not consistently. It works fine in about 80% of the cases.

When doing this:

fld = (FieldType*)TblGetCurrentField(*(&table));
fld = &table->currentField;

the first line will set fld to 0x00000000 and the second line will correctly retrieve 0x00004FFA. Does anybody have an idea what the problem could be?

TIA,

-Arthur


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to