Statements List of the language VBScript

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 Promotic 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 a condition is true or until a condition becomes true.
Erase Reinitializes the elements of fixed-size arrays 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 element 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 Enables 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 program
Select Case Executes one of several groups of statements, depending on the value of an expression
Set Assigns an object reference to a variable (or to an object property)
While...Wend Executes a series of statements as long as a given condition is true
Not useful statements in system PROMOTIC:


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