Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 (procedures) and the statements for calling functions (procedures) connected with them. These statements are meant for the definition of functions (procedures) on the script level, while in the PROMOTIC system there is defined the content of the functions (procedures) themselves. This means that the script, for example, of the Promotic object event is a body of the function (procedure) and therefore it is not possible to define other functions (procedures).
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 at procedure level 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:

nothing

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