Core Function Chr
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Chr( <expression> ) </pre> === Description === Returns a character corresponding to an ASCII code. === Parameters === ==== char ==== The character to get the code for....") |
|||
Line 11: | Line 11: | ||
==== char ==== | ==== char ==== | ||
− | + | An ASCII code in the range 0-255 (e.g., 65 returns the capital letter A). | |
=== Return Value === | === Return Value === | ||
− | Returns the | + | Success: Returns a string containing the ASCII representation of the given code. |
+ | |||
+ | Failure: Returns a blank string. | ||
=== Remarks === | === Remarks === |
Revision as of 23:46, 25 August 2013
Chr( <expression> )
Contents |
Description
Returns a character corresponding to an ASCII code.
Parameters
char
An ASCII code in the range 0-255 (e.g., 65 returns the capital letter A).
Return Value
Success: Returns a string containing the ASCII representation of the given code.
Failure: Returns a blank string.
Remarks
None
Example
$text = ""; For( $i = Asc('A'); $i <= Asc('Z'); $i++) { $text .= Chr($i); } MsgBox("Uppercase alphabet $text ");