Core Function Chr

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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 ====
  
The character to get the code for. If a string is used, the code for the first character is given.
+
An ASCII code in the range 0-255 (e.g., 65 returns the capital letter A).
  
 
=== Return Value ===
 
=== Return Value ===
  
Returns the unicode code of the specified char.
+
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 ");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox