PRINT
Display text strings in the debug output of the Program Management window.
WebVue support - Yes.
Syntax
IntVal = PRINT(Data1[, Data2....[, Data10]]);
Return type: INTEGER.
Argument |
Meaning |
Data1 to Data10 |
The information to be printed. Maximum 10 items. All variable types are supported. |
Execution
Any type of data can be passed as parameter.
The values of the supplied data items are displayed in the program monitor window.
The display format for different types of data is as follows:
Data |
Format |
STR |
The same as that passed as a parameter. |
INTEGER |
Signed integer. |
LONG |
Signed long. |
SINGLE |
[-]dddd.dddddd. The number of digits before the decimal point depends on the size of the number. |
DOUBLE |
[-]dddd.dddddd or [-]d;dddE[sign]ddd. |
CONST |
[-]dddd.dddddd or [-]d;dddE[sign]ddd. |
|
Return: Always 1. |
Example
SUB Main()
DIM dblValue1 as double;
DIM dblValue2 as double;
dblValue1 = 2.5;
dblValue2= 2;
PRINT(dblValue1,dblValue2);
'Displays "2.52"
PRINT("dblValue1",dblValue2);
'Displays "dblValue12"
PRINT("dblValue1 ",dblValue2);
'Displays "dblValue1 2"
PRINT("dblValue1 = ",dblValue1);
'Displays "dblValue1 = 2.5"
PRINT("Hello,"," ","World","!");
'Displays "Hello, World!"
END SUB