Industrial Automation
Industrial Automation | Europe


Main > Product Type > Software > Visualisation
Minimize Text   Default    Enlarge Text


What Are The Syntax Differences Between VBScript and CX-Supervisor Script?

VBScript has some minor syntax differences to CX-Supervisor script. The most important are:
  • 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:

  MsgBox("Press {Enter}")  '

does not work
Instead use the following to replace these characters:

  MsgBox("Press " + chr(123) + "Enter" + chr(125))


Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2008-10-21
Modified 2009-05-01
Views 4412


You are not logged in.