CString::Remove
This method removes instances of ch from the string. Comparisons for the character are case-sensitive.
int Remove(
TCHAR
chRemove );
Parameters
- chRemove
Specifies the character to be removed from a string.
Return Value
The count of characters removed from the string. Zero if the string is unchanged.
Example
//remove the lower-case letter 't' from a sentence:
CString str("This is a test.");
int n = str.Remove('t');
ASSERT(n == 2);
ASSERT(str == "This is a es.");
Requirements
Windows CE versions: 1.0 and later
Header file: Declared in Afx.h
Platform: H/PC Pro, Palm-size PC, Pocket PC