Quick Option Menu Question

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

Moderators: Klaus, FourthWorld, heatherlaine, 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 »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Quick Option Menu Question

Post by jmburnod »

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 »

Awesome! Thanks.
Post Reply