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).
CString Left( int nCount ) const;
throw( CMemoryException );
Header File | Afx.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CString Overview, CString Member Functions, Simple Value Types, CString::Mid, CString::Right