Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about searching for part of a CString

Status
Not open for further replies.

nbgoku

Programmer
May 25, 2004
108
US
CString a;
a = "123"

is there an easy way (function maybe) to search that CString called a, and find out what its last 2 values are (n and n-1)
 
a.Right(2) returns last 2 chars of a.
There are a lot of member functions in MFC class CString -Find(), ReverseFind() etc. See MSDN help, what's a problem?...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top