MenuPick

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
DB
Posts: 3
Joined: Sun Oct 22, 2006 2:14 am

MenuPick

Post by DB »

I don't know what is wrong here, but I can't get this pulldown menu named "choose a variable" to do anything. Nothing in answerBox and nothing in field "test".

on menuPick pVariable
switch pVariable
case "X"
put "X" into fld "test"
break
case "Y"
answer "Y"
break
end switch
end menuPick
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: MenuPick

Post by Klaus »

Hi DB,

welcome to the forum!

The script is OK, tested and works here!?
Any more info you can provide?


Best

Klaus
DB
Posts: 3
Joined: Sun Oct 22, 2006 2:14 am

Re: MenuPick

Post by DB »

I click on the "choose a variable" dropdown button, pick either menu item X or Y, and it does absolutely nothing. No answer, no value put into field "test".
Attachments
Screen Shot 2020-08-22 at 3.18.31 PM.png
DB
Posts: 3
Joined: Sun Oct 22, 2006 2:14 am

Re: MenuPick

Post by DB »

OK, this was weird. I saved and closed LiveCode, opened it back up and it worked. When in doubt, reboot.....
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: MenuPick

Post by Klaus »

EXACTLY! :-)
Post Reply