VBScript Chr Function
Complete VBScript Reference Manual
The Chr function converts a specified ANSI character code to a character.
**Note:** Numbers from 0 to 31 represent nonprintable ASCII codes; for example, Chr(10) returns a line feed character.
Syntax
Chr(charcode)
| Parameters | Description |
|---|---|
| charcode | Required. A number identifying a character. |
Example
Example 1
The example above produces the following output:
A
B
C
a
b
c
Try it »
Example 2
The example above produces the following output:
"
$
%
Try it »
Complete VBScript Reference Manual