Text Commands
6-12-3 Chr
6-12-4 FormatText
88
Typical Example
BStr = Bin (20)
In this example, 'Bstr' contains '10100'.
Syntax
result = Chr (value)
Remarks
Argument
Type
Value
result
Typical Example
Char = Chr(65)
In this example, 'Char' contains 'A'.
Syntax
textpoint = FormatText ("formattext", expression, ...)
Remarks
Argument
Type
textpoint
text
point
formattext
string
expression
Integer /
real
Typical Examples
TextPoint = FormatText ("Boiler temperature is %ld
degrees.",
BoilerTemp)
The value of the 'BoilerTemp' point is inserted into the specified text at the
position marked by the formatting characters (%ld) and then stored in the point
'TextPoint'.
If the value of 'BoilerTemp' was 57 then the resultant text that is stored in
'TextPoint' is as follows:
"Boiler temperature is 57 degrees."
TextPoint = FormatText ("Boiler %ld temperature is %ld
degrees.",
BoilerNo, BoilerTemp)
The value of 'BoilerNo' point is inserted at the first '%ld' marker and the value
of the 'BoilerTemp' point is inserted at the second '%ld' marker and the
resulting string is stored in the point 'TextPoint'.
If the value of 'BoilerNo' was 7 and the value of 'BoilerTemp' was 43 then the
resultant text stored in the 'TextPoint' is as follows:
"Boiler 7 temperature is 43 degrees."
SECTION 6 Functions and Methods
Description
Extended ASCII value to convert to a
character.
String containing single character
representation of value.
Description
A text point which holds the formatted text.
The text (with appropriate formatting
characters) that the result expression is
inserted into.
The value(s) or expression(s) that is inserted
into formattext.