Char

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


Char (asciiCode) String

ParameterTypeDescription
asciiCodeNumberASCII code from 0 to 255
Function resultStringCharacter represented by the ASCII code

Description

The Char command returns the character whose ASCII code is asciiCode.

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.

Important: Within 4D, all the text values, fields, or variables that you have not yet converted to another ASCII map are Mac OS-encoded on both Macintosh and Windows. For more information, see the section ASCII Codes.

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(13)+"Press OK to continue.")

See Also

Ascii, ASCII Codes, Character Reference Symbols.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next