> From: JF
>
> frmP = FrmGetActiveForm();
> tableP = (TablePtr)FrmGetObjectPtr(frmP,
> FrmGetObjectIndex(frmP, OrderTableTable));
> ...
> somtiemes ... I get an "Object not in Form" error...
>
Check frmP to make sure it really is your form before calling
FrmGetObjectPtr(). Or, instead of FrmGetActiveForm(), use
FrmGetFormPtr(YourFormID).
The form you think is the active form is not always the active form. For
example, I believe the OS creates a form for a List, so if you have tapped
on a List, that is likely to be the active form.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/