Skip to main content
Version: 21 R3

Char

Char ( charCode : Integer ) : Text

ParameterTypeDescription
charCodeInteger→Character code
Function resultText←Character represented by the charCode
History
ReleaseChanges
11 SQLModified
<6Created

Description​

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​

Character code
Character Reference Symbols
Unicode Codes

Properties​

Command number90
Thread safeyes