A statement is a command that signals VTS to perform an action in an application, such as drawing graphics, doing mathematical functions, communicating, raising an alarm, logging data or trending. A simple statement might look like:
A = 5;
This statement sets the value of the variable "A" to "5".
Other statements have the form:
Beep(1000);
This statement passes the "Beep" function a parameter value of 1000, thereby generating a 1000 Hz tone in the internal speaker of the computer.
Statements always end with a semi-colon. They need not be written on a single line. For example, the following are two perfectly valid statements:
A = {setting the value of "A" … }
5; { … to five. }
GUIRectangle(236, 180, 280, 236,
1, 1, 1, 1, 1 { Scaling },
0, 0 { Movement },
1, 0 { Visibility, scaling },
0, 0, 0 { Selectability },
Brush(0, 0, 1), Pen(0, 1, 1));
Topics in this section: