Android Question Efficient way to add items to multiple spinner controls

Azhar

Active Member
Licensed User
Longtime User
Hello,

Please can someone point me in the right direction. My form has ten spinner controls and I need to set each one up with the same item selection data give or take a few exceptions.

Is there a more efficient way to do this by using a for next loop such as in this pseudo code...

looking at all the available controls in the current activity form ->

for a = 1 to activity.controls.all
if {activity.control = a spinner control} then Add as array "this", "that" etc
next a

rather than adding data to each and every specific spinner control individually which is a bit long winded.

Thanks

Azhar
 
Top