Chr: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.'' | |||
'' | Chr(''number'') | ||
== Description == | |||
'''Example | Chr returns the equivalent character of an ANSI character code. The required expression, ''number'', is any numeric expression. | ||
== Example (Basic) == | |||
<pre> | <pre> | ||
Rem Chr Example | |||
' | 'Chr returns characters from numbers | ||
Lowercase = | Dim Lowercase, Uppercase | ||
Uppercase = | Lowercase = Chr(97) | ||
Uppercase = Chr(97 - 32) | |||
Print "Lowercase = " & Lowercase | |||
Print "Uppercase = " & Uppercase | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 24: | Line 27: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[asc| | |||
[[asc|Asc]] | |||
[[Category:Language Reference]] | |||
[[Category:Strings]] | |||
[[Category:BASIC Functions]] |
Latest revision as of 15:20, 25 March 2019
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