PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WDM22 - String To HTML
WDM22 - String To HTML
Iniciado por guest, 28,ago. 2018 04:13 - 1 respuesta
Publicado el 28,agosto 2018 - 04:13
Hi All

I am displaying some string content in an html control in iOS and Android. I need to make the contents of this string display with "line feeds". So I guess I need to change the line feeds in the string to <BR> before including it in the html control. Is there a function to do that or should I just do a search and replace? If the latter how would I go about doing the search and replace?

Cheers
André
Publicado el 28,agosto 2018 - 05:30
Sorted. In WX23 you have TextToHTML

In WX22 that I am currently using the following did the trick:

MyString = Replace(MyString,CRLF,"<BR>")

Cheers
André