User Tools

Site Tools


syntax:functions:char

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
syntax:functions:char [2016/06/07 23:51] – created dmitrysyntax:functions:char [2021/08/14 21:55] (current) – [Examples] craigt
Line 1: Line 1:
-===== Char(N) =====+====== Char(char_code) =====
 +Category:  Text function
  
-Returns the ASCII character associated with the character code N.+\\  
 +=====Description===== 
 +This function returns the ASCII character associated with //char_code//.
  
-**Examples**+\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|char_code|Number|The numeric (decimal) ASCII value to be converted into the ASCII character.|
  
-char(32) returns the space character.+**Return value type:** Text
  
-char(34) returns the double quote.+\\  
 +=====Remarks===== 
 +This function returns a //text// value regardless of what the character appears to be.  See examples below.
  
-char(39) returns the single quote.+\\  
 +=====Examples=====
  
 +  char(65) //Returns 'A'
 +
 +  char(97) //Returns 'a'
 +
 +  char(32) //Returns the space character
 +
 +  char(34) //Returns "  (Double quote)
 +
 +  char(39) //Returns '  (Single quote)
 +
 +  char(50) //Returns '2'  (2 is returned as a text string, not a number value)
 +
 +\\ 
 +===== See also =====
 +  * [[syntax:functions:code|Code(text)]]
  
syntax/functions/char.1465357894.txt.gz · Last modified: 2016/06/07 23:51 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki