Page 1 of 1

Pulldown Menu button

Posted: Fri Jul 22, 2011 8:35 pm
by Val_UK
Hi, guys,
How can I call different commands based on what menu is selected in Pulldown Menu button. I know how to do it in RealBasic but I have not figured out how to do it in LiveCode.
Any help is very appreciated.
Val

Re: Pulldown Menu button

Posted: Fri Jul 22, 2011 10:30 pm
by townsend
Welcome to LiveCode. I think this is what you're looking for.

Code: Select all

on menuPick mySelection
     if MySelection = "this" then
          --do this
     else if mySelection = "that" then
          --do something else
     else
          --otherwise do this
     end if
end menuPick

Re: Pulldown Menu button

Posted: Fri Jul 22, 2011 11:47 pm
by Val_UK
Townsend,
Thank you for the reply - it really helped.
Val