Logo

Hacker’s Guide to Visual FoxPro
An irreverent look at how Visual FoxPro really works. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro.

LENC()

Added in VFP 3.0b, this function tells you the length of a string and whether it’s single-byte, double-byte or mixed. It’s the double-byte equivalent of LEN(). We haven’t tested in a double-byte situation.

Usage

nLengthInCharacters = LENC( cString )

See Also

Double-Byte Character Sets, Len()