Help needed!
-
hello! my cstring looks like that: 1;2;3;.....and so on. i want to know, how i can delete the ';' inside this string. is there a possibility to reset the ';' into a blank (' ')? MFC
-
hello! my cstring looks like that: 1;2;3;.....and so on. i want to know, how i can delete the ';' inside this string. is there a possibility to reset the ';' into a blank (' ')? MFC
Doesn't CString have a Replace function that does this ? <Edit> I asked because I wasn't sure. Yes, it does have a Replace method, which will do what you want. </Edit> Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
Doesn't CString have a Replace function that does this ? <Edit> I asked because I wasn't sure. Yes, it does have a Replace method, which will do what you want. </Edit> Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
super, thanks. :rose: where did I have my eyes? :zzz::eek: do u know also, how can delete the ';' without a replace? MFC
-
super, thanks. :rose: where did I have my eyes? :zzz::eek: do u know also, how can delete the ';' without a replace? MFC
Just replace them with an empty string. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
Just replace them with an empty string. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
i tried it, with
str.Replace(';', '');
but then i got an error message, because of the empty string. is there another possibility? -
i tried it, with
str.Replace(';', '');
but then i got an error message, because of the empty string. is there another possibility?str.Remove(';'); I dunno if it works for all instances, I've just been looking up the MSDN to answer you. I don't use MFC at all anymore, not for a long time. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
str.Remove(';'); I dunno if it works for all instances, I've just been looking up the MSDN to answer you. I don't use MFC at all anymore, not for a long time. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
it functions! thank you very much! :-D:-D MFC p.s.: i never find what i´m looking for in the msdn. :eek: :(