
Appendix A. CRBasic Programming Instructions
503
String Output Processing
TheSample()instructionwillconvertdatatypesifthesourcedatatype
isdifferentthantheSample()datatype.Stringsaredisallowedinall
outputprocessinginstructionsexceptSample().
A.7.2 String Commands
ArrayLength
Returnsthelengthofavariablearray.
Syntax
ArrayLength(Variable)
ASCII
ReturnstheASCII/ANSIcodeofacharacterinastring.
Syntax
Variable = ASCII(ASCIIString(1,1,X))
CheckSum
Returnsachecksumsignatureforthecharactersinastring.
Syntax
Variable = CheckSum(ChkSumString, ChkSumType, ChkSumSize)
CHR
InsertsanANSIcharacterintoastring.
Syntax
CHR(Code)
FormatFloat
Convertsafloating‐pointvalueintoastring.ReplacedbySPrintF().
Syntax
String = FormatFloat(Float, FormatString)
FormatLong
ConvertsaLONGvalueintoastring.ReplacedbySPrintF().
Syntax
String = FormatLong(Long, FormatString)
FormatLongLong
Convertsa64‐bitLONGintegerintoadecimalvalueintheformatofastring
variable.
Syntax
FormatLongLong(LongLongVar(1))
HEX
Returnsahexadecimalstringrepresentationofanexpression.
Syntax
Variable = HEX(Expression)
Kommentare zu diesen Handbüchern