PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WDM22 - String To HTML
WDM22 - String To HTML
Débuté par André Labuschagné, 28 aoû. 2018 04:13 - 1 réponse
Posté le 28 août 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é
Posté le 28 août 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é