At 07:49 2002-11-20 -0800, you wrote:
Hello,

I was wondering if there is a way of passing variables
between different forms? Or are globals the only
solution?
You can also store data on a form using a gadget -- just use the gadget for its data pointer in which you can store a pointer to a structure with all your data, but don't actually setup a gadget handler or draw anything based on its boundaries.

This solves storing data for a form's handlers to process, but it doesn't address interform data transfer. This just depends on how the switching of the forms happens. If you're using FrmGotoForm, then you could post some sort of event that will be received after the frmLoadForm event that would have a data pointer, but this seems pretty clumsy.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


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

Reply via email to