4D v16.3

Char

Home

 
4D v16.3
Char

Char 


 

Char ( charCode ) -> Function result 
Parameter Type   Description
charCode  Longint in Character code
Function result  String in Character represented by the charCode

The Char command returns the character whose code is charCode.

Pass a UTF-16 value (included between 1 and 65535) in charCode.

Tip: In editing a method, the command Char is commonly used to specify characters that cannot be entered from the keyboard or that would be interpreted as an editing command in the Method editor.

Example  

The following example uses Char to insert a carriage return within the text of an alert message:

 ALERT("Employees: "+String(Records in table([Employees]))+Char(Carriage return)+"Press OK to continue.")



See also 

ASCII Codes
Character code
Character Reference Symbols
Unicode Codes

 
PROPERTIES 

Product: 4D
Theme: String
Number: 90

This command can be run in preemptive processesThe Unicode mode affects this command

 
HISTORY 

Modified: 4D v11 SQL

 
TAGS 

Chaîne, ASCII, Codes ASCII

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)