Page 1 of 1

Option Menu option - (='.'=)

Posted: Thu Aug 06, 2015 2:52 pm
by Mariasole
Ciao a tutti! (Hello to all :P )
I am using the component "option menu."
I would like the list of choices (aka Menu Items) on the menu was passed from a variable and not manually entered. Surely it is a stupid question, like many others of my own, but I looked in the dictionary, then in the forum, then in lists.runrev.com, then in "lessons" of LC site..... but I could not find anything (or maybe I did not understand anything!).

LiveCodePigCode:

Code: Select all

put "Shery Goff|Evelyne Roan|Evelyne Roan|Josefine Villavicencio" into pItemName

on menuPick pItemName
   switch pItemName
      ....
   end switch
end menuPick
Thanks for your patience, but I am slow to learn, but I have great desire!

Mariasole
(='.'=)

Re: Option Menu option - (='.'=)

Posted: Thu Aug 06, 2015 2:58 pm
by Klaus
Hola Maria,

so you want fill a menu-button byy script?

Then you need to supply a CR delimited list of options/menuitems and SET THE TEXT OF that button!
...
put "Shery Goff" & CR & "Evelyne Roan" & "Evelyne Roan" & CR & "Josefine Villavicencio" into tMenuItems
set the text of btn "your menu button here" to tMenuItems
...

Best

Klaus

Re: Option Menu option - (='.'=)

Posted: Thu Aug 06, 2015 3:28 pm
by Mariasole
Many thanks Klaus!
Ich habe endlich verstanden! :D
Thanks again! :!:

Mariasole
(='.'=)