Chr

From NSB App Studio
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

Chr(number)

Description

Chr returns the equivalent character of an ANSI character code. The required expression, number, is any numeric expression.

Example (Basic)

Rem Chr Example
'Chr returns characters from numbers

Dim Lowercase, Uppercase
Lowercase = Chr(97)
Uppercase = Chr(97 - 32)
Print "Lowercase = " & Lowercase
Print "Uppercase = " & Uppercase

Output

Lowercase = a
Uppercase = A

Related Items

Asc