CString::Right

This method extracts the last (rightmost) nCount characters from this CString object and retrieves a copy of the extracted substring. If nCount exceeds the string length, then the entire string is extracted. Right is similar to the Basic RIGHT$ 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 Right( int nCount ) const; throw( CMemoryException );

See Also

CString::Mid, CString::Left