Send Menupick?

Klaus Major klaus at major-k.de
Mon Jan 23 14:12:10 EST 2006


Hi Swami,

> I would  like to have a script in one menu button  on one card (A),  
> take the user to another card  (b) and trigger a menu choice on a  
> button on Card B
>
> This seemed to be obvious enough:
>
> --> pull down menu on Card A
> on menuPick pitem
>   switch pItem
>   case "User Guide"
>     go to card "User Guide"  # Card B
>     send menupick ("Working Guide") to btn "Help" # a tabbed menu  
> on card B
>     break
>   end switch
> end menuPick
>
>
> but I get an error for this line:
>
>  send menupick ("Working Guide") to btn "Help"
>
> and the script error is saying it thinks this is a function call  
> and not an attempt to send a msg?
>
> Send MouseUp  works, but  send Menupick doesn't? (of course it  
> probably does, I'm just doing something wrong...

Please spread the word: Use QUOTES with "send"! :-)

Try this:

..
put "Working Guide" into menu2pic
send "menupick menu2pick" to btn "Help"
..

:-)

> Insights?
>
> Sivakatirswami

Regards from cold germany

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list