Selecting Menu Item in Option Menu
Ken Ray
kray at sonsothunder.com
Thu Jan 29 20:18:41 EST 2009
> What's wrong with putting this in a suitable library, to extend the
> language:
>
> setprop menuChoice what
> lock messages
> set the wholematches to true -- optional, if you want
> -- to require the syntax to specify the full menuItem name
> put lineOffset(what,the text of the target) into tNum
> if tNum = 0 then
> return "menuItem not found"
> else
> set the menuHistory of the target to tNum
> end if
> unlock messages
> end menuChoice
>
> Then you can use your preferred syntax, no?
Excellent point, Peter... I will do just that (but of course it would be
great for it to be in the engine...)
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list