PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB20] - How to get a line feed using StringBuild
[WB20] - How to get a line feed using StringBuild
Iniciado por guest, 25,ene. 2016 18:25 - 2 respuestas
Publicado el 25,enero 2016 - 18:25
Hi All -

I'm trying to get a line feed to show up in a string - I'm using StringBuild and then on the other end, I'm using HTMLTOTEXT(sLogEntry).

So - LogEntry is string = Stringbuild("To: %1"+CR+"From: %2", Name1, Name2)

HTMLTOSTRING removes the CR and sticks in a space. What can I stick in there to get a carriage return? Sometimes the Text coming in is in HTML, so I need to use HTMLTOTEXT to shrink up the Log Entry.
Publicado el 25,enero 2016 - 21:51
Joel
This should give you a line break.
Stringbuild("To: %1"+"br"+"From: %2", Name1, Name2)

Not sure what will happen when you apply HTMLToString though
Publicado el 26,enero 2016 - 13:23
Joel,

Instead of CR use CRLF. This puts in the carriage return and sets to the next line.

Regards,

Mike