This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
Char
|
Char ( charCode ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
charCode | Longint |
![]() |
Character code | |||||
Function result | String |
![]() |
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.
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.")
Product: 4D
Theme: String
Number:
90
Modified: 4D v11 SQL
Chaîne, ASCII, Codes ASCII
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)