Previous Up Next

5.2.10  String defined by the ASCII codes of its characters

The char command translates ASCII codes to strings.

Example

char([97,98,99,100])
     
“abcd”           
char(97)
     
“a”           

Note that there are 256 ASCII codes, 0 through 255. If asc is given an integer c not in that range, it will use the integer in that range which equals c modulo 256.

char(353)
     
“a”           

because 353−256=97.


Previous Up Next