I'm trying to dynamically update a label on a form. Here's the code snippet occuring during the nilEvent of the HandleEvent method for this form:
// then change the label text index = FrmGetObjectIndex(form, lblSessionTime); FrmHideObject(form, index); FrmCopyLabel(form, index, sessionTimeText); FrmShowObject(form, index); I get the following error message in the Palm Emulator when debugging: New Application (unknown version) called SysFatalAlert with the message: "Form.c, Line: 1272, Object not in form." When stepping through the debugger, this error is triggered by the FrmCopyLabel line above. I can not understand for the life of me why the FrmHideObject which uses the same object index is fine but the next line fails. If I comment out the FrmCopyLabel line, all is well - except my label remains unchanged. Any pointers? Thanks! Mike -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
