----- Original Message -----
From: "Richard Hartman" <[EMAIL PROTECTED]>
Subject: Re: *&@#!! Some amazing problems !
> ... but I'd have to see the code for GetObjectPtr(). It's
> gotta be somewhere since it isn't part of the actual Palm API.
If you are using the latest CodeWarrior and create a new app with the "Palm
OS 3.5 Stationery" and select "Palm OS C App", the resulting Starter.c will
contain this function:
/***********************************************************************
*
* FUNCTION: GetObjectPtr
*
* DESCRIPTION: This routine returns a pointer to an object in the current
* form.
*
* PARAMETERS: formId - id of the form to display
*
* RETURNED: void *
*
* REVISION HISTORY:
*
*
***********************************************************************/
static void * GetObjectPtr(UInt16 objectID)
{
FormPtr frmP;
frmP = FrmGetActiveForm();
return FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, objectID));
}
I have never used this due to the problem inherent in assuming that the
active form contains the desired object.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/