Page 1 of 1
MenuPick
Posted: Sat Aug 22, 2020 9:33 pm
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
Re: MenuPick
Posted: Sat Aug 22, 2020 10:01 pm
by Klaus
Hi DB,
welcome to the forum!
The script is OK, tested and works here!?
Any more info you can provide?
Best
Klaus
Re: MenuPick
Posted: Sat Aug 22, 2020 10:21 pm
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".
Re: MenuPick
Posted: Sat Aug 22, 2020 10:44 pm
by DB
OK, this was weird. I saved and closed LiveCode, opened it back up and it worked. When in doubt, reboot.....
Re: MenuPick
Posted: Sat Aug 22, 2020 11:56 pm
by Klaus
EXACTLY!
