>   frmP = FrmInitForm (AboutForm);
>
>   FrmSetActiveForm(frmP);
>
>   CtlSetValue((ControlType *)GetObjectPtr(AboutTestCheckbox),0);
>
>   FrmDoDialog (frmP);   // Display the About Box.
>
>   Int16 iTemp = CtlGetValue((ControlType
> *)GetObjectPtr(AboutTestCheckbox));
>
>   // This is the line that doesn't work.

of course not. AboutTestCheckbox was displayed modally. it is no longer the
current form. in fact it is not anything - it is history. so even if you had
saved the return value from the first call to GetObjectPtr, it would not
help you now.

you have a problem of design. the only value you get back from a modal
dialog is the ID of the button that was pushed.


-- 
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