Click or drag to resize

LenC Function

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

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION LenC(
	cExpression AS STRING
) AS DWORD
Request Example View Source

Parameters

cExpression
Type: String
Specifies the character expression for which LenC( ) returns the number of characters.

Return Value

Type: DWord
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