Chr: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Chr(''number'') | |||
== Description == | |||
Chr returns the equivalent character of an ANSI character code. The required expression, ''number'', is any numeric expression. | |||
== Example == | |||
<pre> | <pre> | ||
REM | REM Chr Example | ||
' | 'Chr returns characters from numbers | ||
DIM Lowercase, Uppercase | DIM Lowercase, Uppercase | ||
Lowercase = | Lowercase = Chr(97) | ||
Uppercase = | Uppercase = Chr(97 - 32) | ||
PRINT "Lowercase = " & Lowercase | PRINT "Lowercase = " & Lowercase | ||
PRINT "Uppercase = " & Uppercase | PRINT "Uppercase = " & Uppercase | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 24: | Line 24: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[asc|ASC]] | [[asc|ASC]] | ||
[[Category:Language Reference]] |
Revision as of 20:23, 8 August 2012
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