world.setvariable

Posted by Metsuro on Mon 13 Sep 2004 06:21 PM — 3 posts, 18,379 views.

USA #0
Donno if its a bug or not but, no matter what world.setvariable just wont work, no idea how to fix that
USA #1
Could you post some of the scripts it's not working in please? Very difficult to reproduce results (or debug) without knowing what's being used.
Amended on Mon 13 Sep 2004 08:21 PM by Meerclar
Australia Forum Administrator #2
Look at the documentation:

http://www.gammon.com.au/scripts/doc.php?function=SetVariable

It is hard to believe that SetVariable "doesn't work". What is much more likely is that you are sending it bad data. According to that page about the only thing that can go wrong is the name of the variable being wrong.

eg. this would not work:

world.SetVariable "**bad variable name**", "foo"

I'm not sure where it is documented, but variables must start with a letter, then consist of A-Z, a-z, 0-9 or the underscore character.