Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Chr Function

VBScript Chr Function


VBScript reference manual 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 »


VBScript reference manual Complete VBScript Reference Manual