m.schonewille at economy-x-talk.com
Wed Feb 25 11:59:29 CST 2009
It looks "the menu of stack myStack" is incorrect syntax, but it
doesn't throw an error. Should this work the way I expect it, or
should it throw an error? Any opinions?
Economy-x-Talk Consulting and Software Engineering
Dutch forum: http://runrev.info/rrforum
Please visit <http://tinyurl.com/d6ojex> and click on "Stem" --Thank
On 25 feb 2009, at 12:26, Mark Schonewille wrote:
> Has anyone ever experience the following problem? I have a menubar,
> in which I need to enable and disable menus. For this, I use a
> simple repeat loop.
> put "Text Editor" into myStack
> repeat for each item myMenu in "File,Edit,Text"
> enable menu myMenu of stack myStack
> end repeat
> Once in a while, particularly in the IDE, I get an error when this
> script runs:
> Type: Chunk (no such object)
> Object name: script
> Line:(row 821 col 11)
> Hint: Text
> (The object name is script because of a Rev bug that occurs in try
> control structures, you can ignore this).
> Suppose that the error occurs at item "Text". This means that the
> following syntax was executed at the moment of the error:
> enable menu "Text" of stack "Text Editor"
> If I execute this line from the messag box while the script editor
> is still in edit mode, it runs fine.
> The question is whether anyone saw something similar and whether
> this may be another Revolution bug. I'm not looking for a solution.
> Best regards,
> Mark Schonewille
More information about the use-livecode