Function Chr returns the ASCII character corresponding to the specified numeric code. The ASCII code value must be between 1 and 255.
FUNCTION Chr(v : INTEGER): CHAR;def vs.Chr(v):
return CHAR| Name | Type | Description |
|---|---|---|
| v | INTEGER | ASCII numeric identifier code. |
Here;s the ASCII table for the lower 128...
PROCEDURE Example;
VAR
cnt :INTEGER;
str :STRING;
BEGIN
FOR cnt := 128 TO 255 DO BEGIN
str := Concat(str, Chr(cnt));
IF cnt MOD 32 = 0 THEN str := Concat(str, Chr(13));
END;
AlrtDialog(str);
END;
RUN(Example);def Example():
str = ""
for cnt in range(128, 255):
str = str + vs.Chr(cnt)
if cnt % 32 == 0:
str = str + vs.Chr(13)
vs.AlrtDialog(str)
Example()VS Functions: Ord
Availability: from All Versions
