At 06:45 PM 9/3/2002 +0200, you wrote: >Is it possible to create an object array with PalmOs? (as is for example >possible in VB) >For example: lblName[0]... lblName[9] > >This way, I can assign text to buttons or labels runtime, instead of >creating a piece of code for each object...
You can use the ID's of the objects to address items by number. For example, I've often coded a series of push buttons with sequential IDs, aka MainChoice1PushButton = 1021 MainChoice2PushButton = 1022 MainChoice3PushButton = 1023 MainChoice4PushButton = 1024 then just say "MainChoice1PushButton + choiceIndex - 1" to pick the appropriate button. This same logic can be applied to any control, since you have the flexibility to change each object's ID using your resource editing tool. -- 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/
