CString::Left

This method extracts the first (leftmost) nCount characters from this CString object and obtains a copy of the extracted substring. If nCount exceeds the string length, then the entire string is extracted. Left is similar to the Basic LEFT$ function, except that indexes are zero-based.

At a Glance

Header file: Afx.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CString Left( int nCount ) const; throw( CMemoryException );

See Also

CString::Mid, CString::Right