Thanks for the response!
At 01:58 PM 11/13/2001 +0100, Thomas Maeder wrote:
>Wade Guthrie wrote:
>>
>> Form.c, Line: 1728, Object not in form
>
>1) you should check the return values before using them again
Sorry, I should have been more explicit. I do check for error returns -- I
left that out of the posted code to make it clearer. I also check the
'formP'
parameter to make sure it's valid.
>2) what line of your code results in this error message?
It's in the 'FrmGetObjectIndex' call (see below).
static void mainFormInit(FormPtr frmP)
{
ControlType *popupP = 0;
UInt16 popupNdx = 0;
static Char text[20];
StrCopy (text, "QUUX");
-- here --> popupNdx = FrmGetObjectIndex (frmP, ArmourPopup);
popupP = FrmGetObjectPtr (frmP, popupNdx);
CtlSetLabel (popupP, text);
}
Thanks, again!
--
Wade Guthrie |
[EMAIL PROTECTED] |
http://members.home.net/guthrie1/ |
|
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/