Given a numerical ASCII code, a String that consists of the equivalent ASCII character is constructed and returned.
...Chr ( expression )
Prerequisites
None
Parameters
expression
A required numerical expression. The expression must have an Integer value that ranges from 0 to 255.
Remarks
Given a numerical expression whose Integer value defines one of 256 possible ANSI ASCII character codes, a String is constructed and returned that contains a single character set to the ASCII code.
This routine is convenient if you wish to construct a String value that contains non-printable characters.
Examples
Dim ii As Integer
Dim ss As String
ss = Chr(10) ' Line feed character
ss = Chr(GPL_CR) ' Carriage return character
ii = Asc(ss) ' ii will be set to 10
See Also