Struggling again...
What is the simplest way to take the lines of a pre-populated 1 dimensional array and put all of them into a List/Combo Box please ?
No problems populating the List/Combo Box in the IDE but I need to do it at run time.
So, I have an array populated with items depending upon the language used and I wish to populate a List/Combo Box with these items so the user may select the option they need...
I have tried various things but keep coming up with either nothing or just the first item of my array in my List/Combo Box.
This works BUt it reallyi is UGLY and awfully LONG...
Code: Select all
put 0 into N
put empty into button "lstPeople" of group "theGroup"
repeat until N= 32
add 1 to N
if gsPeople[N] is not empty then
if n > 1 then put cr after button "lstPeople" of group "theGroup"
put gsPeople[N] after button "lstPeople" of group "theGroup"
end if
end repeat
Regards.