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

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

MenuPick

Post by DB » Sat Aug 22, 2020 9:33 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: MenuPick

Post by Klaus » Sat Aug 22, 2020 10:01 pm

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 » Sat Aug 22, 2020 10:21 pm

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 » Sat Aug 22, 2020 10:44 pm

OK, this was weird. I saved and closed LiveCode, opened it back up and it worked. When in doubt, reboot.....

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: MenuPick

Post by Klaus » Sat Aug 22, 2020 11:56 pm

EXACTLY! :-)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”