Menu Problem!
Lynch, Jonathan
bnz2 at cdc.gov
Wed Aug 17 10:52:35 EDT 2005
Try this:
Put "A" into tParm
Send "menuPick tParm" to button "myButton"
In a send command, items inside the quotes are still evaluated for their
value, rather than being literal.
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of David
Burgun
Sent: Wednesday, August 17, 2005 10:50 AM
To: How to use Revolution
Subject: Menu Problem!
Hi,
I have a pop up menu that has two values, call them A and B. In the
preOpenStack handler I want to set the menu back to A so I tried the
following:
send "menuPick A" to button "myButton"
The Script on myButton is as so:
on menuPick theItemSelected
if theItemSelected = "A" then
-- Do Something
else
-- Do Something else
end if
end menuPick
When I manually enter A or B on the Pop Up all works ok. However when
I run the preOpenStack handler, the Menu Stays a B even though I send
an "A" to it. I have put a breakpoint in the menu pick handler and it
receive the "A" ok. Do I need to set something else to have the menu
update to "A"?????
Thanks in Advance
Dave
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list