How I can declare variables in opto-scripts?


#1

When I want to declare new local variable in opto script I am forced to save and close editor to get access to variables manager because the editor is realised as modal window. Does exists there alternate method of variables declaring without closing editor’s window?
Thanks.


#2

No can do at the moment. It has been mentioned in the suggestions box (http://www.opto22.com/community/showthread.php?t=101).
All variables used in opto script must be declared under the Variables dialog.
There is no stopping you from creating them in opto script, copying them to a temp txt file and adding them using the add variable dialog one by one by copy/paste. Saves you re opening the opto s riot block each time.