Erhalte ein ASCII-Zeichen
Aus ArcoWiki
Version vom 7. Juni 2018, 07:43 Uhr von Slia (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „In order to '''get an ASCII character''' from a string it is necessary to use the command <code>CHR(num)</code>.<br/> It returns a string with the length o…“)
In order to get an ASCII character from a string it is necessary to use the command CHR(num).
It returns a string with the length of 1 char which contains the ASCII character corresponding to the numeric value of 'x' (1 to 255)
$$ Example to print ALL the ASCII characters
DECL/CHAR,50,stDECL/INTGR,iiDISPLY/OFFDISPLY/TERM,V(TEXT)
DO/ii,1,255$$ Assign to the (ii) value the corresponding ASCII characterst=ASSIGN/CHR(ii)st=ASSIGN/CONCAT(STR(ii),' ',st)TEXT/OUTFIL,st
ENDDO