Chr: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
<pre> | <pre> | ||
Rem Chr Example | |||
'Chr returns characters from numbers | 'Chr returns characters from numbers | ||
Dim Lowercase, Uppercase | |||
Lowercase = Chr(97) | Lowercase = Chr(97) | ||
Uppercase = Chr(97 - 32) | Uppercase = Chr(97 - 32) | ||
Print "Lowercase = " & Lowercase | |||
Print "Uppercase = " & Uppercase | |||
</pre> | </pre> | ||
Line 26: | Line 26: | ||
== Related Items == | == Related Items == | ||
[[asc| | [[asc|Asc]] | ||
[[Category:Language Reference]] | [[Category:Language Reference]] |
Revision as of 00:24, 24 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