> I was wondering if there is a way of passing variables
> between different forms? Or are globals the only
> solution?
You -could- set a feature pointer. Or, use a Preferences entry. Since most
of my applications are called from the system (i.e. sysNotify...) I use my
preferences to store anything that I may need.
typedef struct {
// your shared variables here
} SharedGlobalT;
SharedGlobalT *vars;
// Creator ID Size Variable
Err FtrPtrNew ('MSqb', 1000, sizedof(SharedGlobalT), (UInt32 *)&vars);
// Set the contents of the variable here...
// ...
// Inside your function/form, you can call:
SharedGlobalT *data;
if (!FtrGet('MSqb', 1000, (UInt32 *)&data)) {
// do stuff with the variables here...
}
With preferences, just do what's done on AppStart all over again. I like this
method better, since my Preferences structure is generally quite organized.
--
Matthew (Darkstorm) Bevan [EMAIL PROTECTED]
Margin Software, NECTI. http://www.marginsoftware.com
Re-inventing the wheel, every time.
- Distress, n.:
A disease incurred by exposure to the prosperity of a friend.
-- Ambrose Bierce, "The Devil's Dictionary"
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/