Statements list of the VBScript language

Some VBScript statements cannot be used in the PROMOTIC system. It goes first of all about the statements that define functions and the statements for calling functions connected with them. These statements are meant for the definition of functions on the script level, while in the PROMOTIC system there is defined the content of the functions themselves. It means that the script, for example, of the Pma object event is a body of the function and therefore it is not possible to define other functions.
Useful statements:
Dim Declares variables
Do...Loop Repeats a block of statements while the condition is true or until a condition becomes true.
Erase Reinitializes the elements of fixed-size array and deallocates dynamic-array storage space
Exit Exits a block of Do...Loop, For...Next or the whole function.
For Each...Next Repeats a group of statements for each item in an array
For...Next Repeats a group of statements a specified number of times
If Conditionally executes a group of statements, depending on the value of an expression
On Error It allows error-handling
Randomize Initializes the random-number generator
ReDim Used to declare dynamic-array variables and allocate or reallocate storage space
Rem Used to include explanatory remarks in a script
Select Case Executes one of several groups of statements, depending on the value of an expression
Set Assigns an object reference into the variable (or to an object property)
Not useful statements in the PROMOTIC system:


PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice