Setting label of option menu

Kaveh Bazargan kaveh at
Tue Feb 22 01:47:13 EST 2005

I am resetting the menuHistory and the Label of an option button, using the
following script:

create btn "a"
set the style of btn "a" to "menu"
set the menumode of btn "a"  to "option"
set the showName of button "a" to true
put "one" & return & "two" & return & "three" into btn "a"
set the menuHistory of btn "a" to 2
set the label of btn "a" to "two"

Why is the label of the button still "a", not "two"?

Kaveh Bazargan

More information about the Use-livecode mailing list