Welcome! Log In Create A New Profile

Advanced

André Labuschagné: WDM22 - String To HTML

Posted by harvey68 
André Labuschagné: WDM22 - String To HTML
September 08, 2018 06:27PM
Autor: André Labuschagné

Link zum Beitrag: [27130.foren.mysnip.de]

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
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é
André Labuschagné: WDM22 - String To HTML
September 08, 2018 06:27PM
Autor: André Labuschagné

Link zum Beitrag: [27130.foren.mysnip.de]

Sorted. In WX23 you have TextToHTML

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

MyString = Replace(MyString,CRLF,"")

Cheers
André
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: