Set the items of Option menu
Posted: Sat Feb 14, 2015 10:49 am
Hello!
my question is: how to set up the items of Option menu in LiveCode?
In Card's script:
i have a "Repeat" structure to scan the database. with X from 1 to 40 i'm reading from database the field "Name" with number X and if "Name" is not empty, i adding the current number X (with "return" charachter) AFTER variable which i call "RiderSet". Why am i doin it? For option menu i don't need whole numbers (1-40) to choose which select, i need just numbers of existing riders.
And now i need to assign this set to items i can choose with Option Menu
i've tried like this:
set menuItems of button "RiderA1Number" to RiderSet
or like this:
put RiderSet into menuItems of button "RiderA1Button"
but it's failed. Write for me right syntax, please!
my question is: how to set up the items of Option menu in LiveCode?
In Card's script:
i have a "Repeat" structure to scan the database. with X from 1 to 40 i'm reading from database the field "Name" with number X and if "Name" is not empty, i adding the current number X (with "return" charachter) AFTER variable which i call "RiderSet". Why am i doin it? For option menu i don't need whole numbers (1-40) to choose which select, i need just numbers of existing riders.
And now i need to assign this set to items i can choose with Option Menu
i've tried like this:
set menuItems of button "RiderA1Number" to RiderSet
or like this:
put RiderSet into menuItems of button "RiderA1Button"
but it's failed. Write for me right syntax, please!