Chr function

Chr function

See Also         Example

Returns a String containing the character associated with the specified character code.

Syntax

Chr(charcode)

The required charcode argument is a Long that identifies a character.

Remarks

Numbers from 0 to 31 are the same as standard, nonprintable ASCII codes. For example, Chr(10) returns a linefeed character. The normal range for charcode is 0 – 255. However, on DBCS systems, the actual range for charcode is  – 32768 through 65536.

Note   The ChrW function returns a string containing the character in the format native to the operating system (ANSI for Windows 95, Unicode for Windows NT).