Try going back to Constructor and generating source code. 
Go back to the IDE and bring it up to date.  Recompile...it
should see it then.  Check your header file to make sure
that the List's name is correct.

If that doesn't work, make sure that you're including the 
right copy of the header file.  These things happen, 
especially if you generate source as header_res.h and 
change it to header.h. or something like that.

It's very simple code that I've used a billion times, so
it should work, although, I don't think you have to cast
the ObjectPtr as a ListPtr, as ObjectPtr is a union that
contains ListPtr...you probably have your reasons, though.

-Rus


>-----Original Message-----
>From: DCU [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 20, 2000 1:09 PM
>To: Palm Developer Forum
>Subject: Object not in Form
>
>
>Hello all,
>
>I am having trouble with a list.  In that everytime I try to 
>get its Ptr I
>get an error "Object Not In Form".
>The form is new and it was constructed with Metroworks 
>Constructor so I am
>relatively sure that the Object is indeed, part of the form.  
>The code that
>I am using to get the ptr to the list is the following:
>
>frmP = FrmGetActiveForm();
>objIndex = FrmGetObjectIndex(frmP, ChecksTicketList);
>lstP = (ListPtr)FrmGetObjectPtr(frmP, objIndex);
>
>I get the error on FrmGetObjectIndex.
>
>Does anybody have any suggestions?
>
>Thanks,
>Kristopher Keller
>Data Collections Unlimited
>[EMAIL PROTECTED]
>
>
>
>-- 
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>

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

Reply via email to