Chr

Description:

Returns a string of characters using the specified ASCII/UTF codes.

Syntax:

result = chr(code[(repeat)] [, …])

where:

string
an ascii/utf code.
repeat
The number of copies of this character required.

Return Value:

A string containing the requested characters.

Remarks:

(none)

Example:

st = chr(32)          // st = " " (1 space character)
st = chr(32(8))       // st = " " (8 space characters)
st = chr('x'(8))      // st = "xxxxxxxx" (8 'x' characters)

put "The character represented by":>>
put " the ASCII code of 97 is: ": chr(97)  // "a"

put chr(97, 98, 99)                        // "abc"

See Also:

Implementation Status:

LynPlex Interpreter
Currently only supports returning a single character.
LynPlexC Compiler
Currently only supports returning one or more single characters.
LynPlexS Compiler
Currently only supports returning a single character or multiple copies of a single character.
The second argument is the number of copies.

lynplex/lp0402_chr.txt · Last modified: 2013/10/13 14:58 (external edit)