Appendix A. CRBasic Programming Instructions
Table 139. String Operations
String comparison operators The comparison operators =, >,<,<>, >= and
<= operate on strings.
String final-data output processing The Sample() instruction will convert data
types if the source data type is different than
the Sample() data type. Strings are disallowed
in all output processing instructions except
Sample().
A.8.2 String Commands
ArrayLength
Returns the length of a variable array.
Syntax
ArrayLength(Variable)
ASCII
Returns the ASCII / ANSI code of a character in a string.
Syntax
Variable = ASCII(ASCIIString(1,1,X))
CheckSum
Returns a checksum signature for the characters in a string.
Syntax
Variable = CheckSum(ChkSumString, ChkSumType, ChkSumSize)
CHR
Inserts an ANSI character into a string.
Syntax
CHR(Code)
Erase
Clears all bytes in a variable or variable array.
Syntax
Erase(EraseVar)
FormatFloat
Converts a floating-point value into a string. Replaced by SPrintF().
Syntax
String = FormatFloat(Float, FormatString)
FormatLong
Converts a LONG value into a string. Replaced by SPrintF().
575