I know how to replace part string...

if (linia->Contains("system_token")) {poprawka = linia->Replace( "system_token", systems );}

but what should I do, If i need to replace ENTERs (linebreaks)...
For example:
User type in textbox

Hey,
I am
Michael

The result (taken as variable) should be:

Hey,</br>I am</br>Michael

Thx!

Re: How to replace ENTER in string (c++/cli) 80 80

Copy everything to a new string and when you hit a '\n' insert "<br>" instead.

Re: How to replace ENTER in string (c++/cli) 80 80

Thx!
it works!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.