Try OpenEdge Now
skip to main content
ABL Reference
ABL Syntax Reference : IS-LEAD-BYTE function
 

IS-LEAD-BYTE function

Returns TRUE if the first character of the string is the lead-byte of a multi-byte character. Returns FALSE if it is not.

Syntax

IS-LEAD-BYTE ( string )
string
A character expression (a constant, field name, variable name, or any combination of these) whose value is a character.

Example

In this example, IS-LEAD-BYTE returns TRUE because the first byte of the first character is the lead-byte of a double-byte character. The output is "Lead: yes":

See also

OVERLAY statement, SUBSTRING statement