At 3:37 PM -0800 3/26/02, Mike McCollister wrote:
>OK. I got one more question to help make my code a
>little easier to deal with. How can I write a
>function that does something like this:
>
>retVal = MyFormWithEventHandler(input1, input2,
>&output1, &output2);
>
>Thanks,
I did it with globals. A long time ago, and there's probably a better way.
void DMSPopupDialog(Angle *X, AngleDisplayType mode, double low, double high)
{
// pop up a dialog box to select a value for angle X
gDMSMeasP = X;
gDMSmode = mode;
gDMSlow = low;
gDMShigh = high;
ASSERT(finite(X->degrees));
ASSERT((X->degrees >= low) && (X->degrees <= high));
FrmPopupForm(DMSEntryForm);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/