PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → RTF Field.
RTF Field.
Iniciado por guest, 09,mar. 2015 16:00 - 3 respuestas
Publicado el 09,marzo 2015 - 16:00
I have a notes field that is a RTF field on the window side. It saves to a text type on the database side.

If I check the file with WDMap only the text resides in the note field for each record, but when I pull in the data to a table it brings in all the RTF markup. Kind of confusing...Is the markup saved in the database or not?

How would I store only te text? Is there an easy way to strip the markup before adding to the table?
Publicado el 09,marzo 2015 - 16:03
Hi Curtis,

Yes the RTF is stored. To remove it, use RTFToText() or simply do not use an RTF control. (Same for HTML.)

Best regards,
Alexandre Leclerc
Publicado el 09,marzo 2015 - 16:10
Perfect. I'll use that before I store the data. Thanks!

It is strange that the markup does not show up in WDMap.
Publicado el 09,marzo 2015 - 16:33
Hi Curtis,

WDMap is displaying the interpreted RTF directly to you, this is why. (Put some bold and underline in a text, and you will see it so.)

Best regard,
Alexandre Leclerc