Partager via


LENC( ) Function

Returns the number of characters in a character expression or memo field.

LENC(cExpression)

Parameters

  • cExpression
    Specifies the character expression for which LENC( ) returns the number of characters.

Return Value

Numeric

Remarks

LENC( ) is designed for expressions containing double-byte characters. If the expression contains only single-byte characters, LENC( ) is equivalent to LEN( ).

LENC( ) returns the number of characters in a character expression or memo field containing any combination of single-byte and double-byte characters.

This function is useful for manipulating double-byte character sets for languages such as Hiragana and Katakana.

See Also

Concepts

Application Creation with Double-Byte Character Sets

Reference

LEN( ) Function

FSIZE( ) Function

TXTWIDTH( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)