Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (m_TxtCharPtr->IsEntered())
- {
- String strText = m_TxtTobereplacedtextPtr->GetText();
- int intFirstSpace = strText.Find(String(" "));
- int intLastSpace = strText.Rfind(String(" "));
- String strTextBetweenSpaces = strText.SubStr(intFirstSpace + 1, intLastSpace - intFirstSpace - 1);
- m_TxtReplacedTextPtr->SetText(String(strTextBetweenSpaces));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement