| Name: | CHAR | Syntax: | (CHAR(int)) |
|---|---|---|---|
| Family: | Function | Category: | Conversion |
| Description: | Does an ASCII code to character conversion | ||
In the following example, the value of vchar1 is A and the value of vchar2 is a.
SET VAR vchar1 = (CHAR(65)) SET VAR vchar2 = (CHAR(97))
The ASCII table is used to display character in the DOS version and at the R>Prompt, while the ANSI chart is used to display characters in Windows Objects such as a Form or Report in R:BASE for Windows. Characters may vary, especially if a different font is used or when using characters about 127.
In most cases these characters can be created by holding down the ALT key and typing the Code on the number pad You will need to pad with zeros in the front. There should be a full four characters. For example use 0064 for code 64. Characters before 32 are considered "unprintable" and may not display. These characters are listed below as well. Windows, by default, uses a small box to indicate a character that is not supported by the current font.
Under Windows you may have better luck using the CHARMAP (Character Map) utility to generate extended characters.