previous  next
Ascii
Syntax
Ascii(N:INT):STRING
Ascii(L:LIST of INT):STRING
Ascii(S:STRING):LIST of INT
Summary
convert between characters and ascii code
Description
In the first form, Ascii returns the character whose ascii code is N.

In the second form, Ascii returns the string whose characters, in
order, have the ascii codes listed in L.

The third form is the inverse of the second: it returns the ascii codes
of the characters in S.

Example

Ascii(97);
a
-------------------------------
C := Ascii('hello world');
C;
[104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100]
-------------------------------
Ascii(C);
hello world
-------------------------------