Ok im utterly confused.
Im running through a tutorials from "Palm Programming (The Authoritative
Solution)" and have come accross an error
I have isolated this error to being caused by a checkbox on a form seperate
from the main form.
The code in question is:
...
...
case SurveySubmitButton:
{
// This line causes the error
Word wIDContactMe = FrmGetObjectIndex (formP,
SurveyContactMeCheckbox);
// It doesn't get this far
ControlPtr pCtlContactMe = (ControlPtr) FrmGetObjectPtr (formP,
wIDContactMe);
// The following line works fine.
Word wIDAge = FrmGetObjectIndex (formP, SurveyAgeLabel);
ControlPtr pCtlAge = (ControlPtr) FrmGetObjectPtr (formP, wIDAge);
...
}
SurveyContactMeCheckbox is defined in the resource header and everything
compiles fine.
..
#define SurveyContactMeCheckbox 1313 //(Left Origin = 14,
Top Origin = 92, Width = 138, Height = 16, Usable = 1, Selected = 0, Group
ID = 0, Font = Standard)
...
I cant understand why this particular control is causing problems.
Any help is greatly appreciated.
Emile
Creative developer.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/