Text Commands SECTION 6 Functions and Methods
87
Typical Example
PrintReport("report3.txt")
The report template is processed, dynamically replacing the point names with
current values, and printed to the default Windows printer.
6-11-3 ViewReport
Syntax
returnstate = ViewReport(ReportTemplateFile)
Remarks
Typical Example
ViewReport("report3.txt")
6-12 Text Commands
6-12-1 BCD
Syntax
result = BCD (value)
Remarks
Typical Example
BCDStr = BCD(39)
In this example, 'BCDstr' contains '00111001'.
6-12-2 Bin
Syntax
result = Bin (value)
Remarks
ReportTemplateFil
e
string Pathname of the report template file.
ReportOutputFile string Pathname of the report output file.
Argument Type Description
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
ReportTemplateFil
e
string Pathname of the report template file.
Argument Type Description
Value Number to convert to Binary Coded Decimal
(BCD).
result String containing BCD representation of value.
Argument Type Description
Value Number to be converted to a binary number.
result String containing binary representation of
value.