Michel.P wrote:
What's wrong with globals? In Palm OS, it's way more hassle to not use them than to use them. You just have to make sure you keep them organized. Try grouping them by prefix so that globals for related forms have the same prefix such asI was wondering if there is a way of passing variables between different forms? Or are globals the only solution?
int prodIndex, prodQty;
in any case, all globals should be named in such a way that you know it is a global.
alternatively, you can create structures to hold related globals. something like:
struct gs_Product {
int index;
int qty;
};
struct gs_Product gProd;
then you can refer to all your product global data as gProd.index, gProd.qty and you keep it clear from other data.
matt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
