Fred,
This seems to work. Do you see any problems reusing s1?
James
typedef String fstring;
int _tmain ()
{
fstring s1(_T("Zero, One, Two , Three , Four, Five , Six, Seven, Eight , Nine, Ten,"));
s1.Print( true);
s1 = s1.Remove(_T(" "));
s1.Print( true);
// Remove Trailing comma
s1.RTrim(44);
s1.Print( true);
}
output:
Zero, One, Two , Three , Four, Five , Six, Seven, Eight , Nine, Ten,
Zero,One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten,
Zero,One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten