LENC()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return length of specified character expression (double byte character sets)

Syntax

LENC(<expC>[,<expL>])

See Also

AT(), AT_C(), CHRTRAN(), CHRTRANC(), LEFT(), LEFTC(), LEN(), RAT_C(), RAT(), RIGHT(), RIGHTC(), SET STRESCAPE, STREXTRACT(), STRLEN(), STRTRAN(), STUFF(), STUFFC(), SUBSTR(), SUBSTRC()

Description

The LENC() function returns the length of specified double byte character expression <expC>. This function should be used when working with Unicode/UTF-8 characters. LEN() and STRLEN() are used with single byte character sets. The optional <expL> is ignored.

Example

nLength = lenc(cDBString)