Quick Option Menu Question

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Quick Option Menu Question

Post by richardmac » Thu Dec 23, 2010 4:32 am

How do you set the menu items of an Option Menu within a script?

I mean, something like:

Set the menu items of button "select list" to myVariable

That's obviously not the syntax - what is? Have looked through the Dictionary and User Guide but can't find this.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Quick Option Menu Question

Post by jmburnod » Thu Dec 23, 2010 9:17 am

Hi RichardMac,

The corrct syntax is :

Set the text of button "select list" to myVariable

Best regards

Jean-Marc
https://alternatic.ch

richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Re: Quick Option Menu Question

Post by richardmac » Thu Dec 23, 2010 3:42 pm

Awesome! Thanks.

Post Reply