Hi again,

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?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

Please visit <http://tinyurl.com/d6ojex> and click on "Stem" --Thank you!

On 25 feb 2009, at 12:26, Mark Schonewille wrote:

Hello,

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

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to