--- Palm wrote: > > I have a problem with a global UInt variable. > I want the variable to store the selection > number of a list. It works fine once and then > the second time it gets changed, different > data is stored.
Is that a problem? If the 2nd selection is not the same as the 1st selection, I'd expect it to store different data. > I am not changing the variable anywhere else. Are you sure you're not overwriting it? For example, static UInt8 x, y, z; x = 0x1234; // probably changes y, too > Do I need to use MemPtrNew with global variables? no > ... > static UInt iPlaylistSelection = 0; lstSelect.selection is an Int16, not a UInt. __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
