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.

LEFTC(), RIGHTC(), SUBSTRC()

These are the double-byte (and mixed) versions of LEFT(), RIGHT() and SUBSTR(), respectively, added in version 3.0b. As with the other double-byte functions, we can’t test these thoroughly since we’re not running in a double-byte environment. However, they do work properly with single-byte data.

Usage

cReturnValue = LEFTC( cString, nCharacters )
cReturnValue = RIGHTC( cString, nCharacters )
cReturnValue = SUBSTRC( cString, nStart, nLength )

See Also

Double-Byte Character Sets, Left(), Right(), SubStr()