Split a string in MFC
-
Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu
hi
-
Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu
hi
Yes, you can use Find, ReverseFind, Left, Middle, Right and other methodes... Just search a bit and choose what you want. Here[^] you have the msdn members list.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
-
Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu
hi
Hi, You can use CStringT::Tokenize()[^]. Best Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Yes, you can use Find, ReverseFind, Left, Middle, Right and other methodes... Just search a bit and choose what you want. Here[^] you have the msdn members list.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
thanks dude :)
hi
-
thanks dude :)
hi
You are welcome :)
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
-
Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu
hi
There's also AfxExtractSubString()[^]
“Follow your bliss.” – Joseph Campbell