CString::Left

Call this member function to extract the first (leftmost) nCount characters from this CString object and obtain 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).

Syntax

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

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CString Overview, CString Member Functions, Simple Value Types, CString::Mid, CString::Right