Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileASC(a$) CHR$(x) a$: sexp x: aexp ASC() and CHR$() are complementary functions. The function ASC() returns the ASCII code of the first character in the subject string. If the string is of zero length (""), zero is returned. CHR$() gives a character, from a specified ASCII code. Only the lowest 8 bits of x (the low-byte) are relevant, as ASCII codes only go up to 255. Example: PRINT ASC("TEST") code|=ASC(CHR$(65)) !CHR$(65) is A PRINT code|,CHR$(189) --> The numbers 84 and 65 and the copyright sign appear on the screen.