VBScript has some minor syntax differences to CX-Supervisor script. The most important are:
Note that CX-Supervisor interprets { and } characters as string delimiters, even in VBScript so the following code does not work:
Instead use the following to replace these characters:
- Boolean equality test == is only = in VBScript.
- Boolean inequality test != is <> in VBScript.
- Endif becomes End If in VBScript.
- Array indexing using ( ) uses square brackets in VBScript [ ]
Note that CX-Supervisor interprets { and } characters as string delimiters, even in VBScript so the following code does not work:
does not workMsgBox("Press {Enter}") '
Instead use the following to replace these characters:
MsgBox("Press " + chr(123) + "Enter" + chr(125))
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article