Chr

From NSB App Studio
Revision as of 20:23, 8 August 2012 by Brendon (talk | contribs)
Jump to navigation Jump to search

Chr(number)

Description

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

Example

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