Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, June 2, 2006 8:49 PM
Hi,
I have a CString object in MFC program, and like to parse its content, for example,
CString test="This is a test for string object. I like to parse it.";
I like to programmatically wipe out the frist sentence and leave the "test" string object with the second sentence: "I like to parse it."
Can you pls help me with it???
Thanks,
vcboy
All replies (2)
Friday, June 2, 2006 9:10 PM âś…Answered
If you a characters you want to split on you can use the Tokenize method.
You can also use Find or FindAnyOf to find the position and then use Mid to extract that part.
Friday, June 2, 2006 9:20 PM
in this example Delete()
Kuphryn