Try OpenEdge Now
skip to main content
ABL Reference
ABL Syntax Reference : ~ Special character

~ Special character

The tilde (~) is an escape character that causes the AVM to read the following character literally. A tilde followed by three octal digits represents a single character. Use it as a lead-in to enter the special characters shown in the following table. In a procedure, a tilde followed by something other than the items in the following table is ignored. For example, "~abc" is treated as "abc". (This may not work as expected when passing parameters to an include file.) The items in the following table are case sensitive.
Table 2. Entering special characters in the Procedure Editor
Interpreted as
Use within quoted strings as an alternative to two quotes ("").
Use within quoted strings as an alternative to two apostrophes ('').
A single character
Where nnn is an octal value between 000 and 377. All three digits are required.
Tab character
Octal 011
Carriage return
Octal 015
New line / Line feed
Octal 012
Octal 033
Octal 010
Form feed
Octal 014
Unicode scalar codepoint in plane 0 (U+0000 to U+FFFF)
Where XXXX is a 4-digit, case-insensitive hex digit.
Unicode scalar codepoint in planes 0-16 (U+0000 to U+10FFFF)
Where XXXXXX is a 6-digit, case-insensitive hex digit.