Cual seria la mejor manera de mostrar un texto multilinea en pantalla? - Forum

Forum Navigation
You need to log in to create posts and topics.

Cual seria la mejor manera de mostrar un texto multilinea en pantalla?

El usuario ingresa un texto, frase, escrito en un cuadro de texto en pantalla, para el ingreso uso "Text Area"

Ese texto ingresado lo guardo en una base de datos para mostrarlo a posterior en otra pagina

Para mostrar el texto uso "Paragraph"

El problema que tengo, es que el texto mostrado no me respeta los saltos de linea, me muestra todo al correr

Existe alguna otra manera de poder hacer eso que planteo?

http://guaviyu.org/Escuela

 

@Gustavo1973

The problem I have is that the text shown does not respect me the line breaks, it shows me everything when running
Is there any other way I can do what I think?

You need to replace the line-feed characters ("\n") with the corresponding HTML code ("<br/>") ...

This example does not save anything to the database ... but shows you how ...

StrReplace "[gkTextArea2]" "\n" "<br/><br/>" [gkPara3] ""
SetObjectHTML "Paragraph3" " [gkPara3]"

... [gkTextArea2] is the variable associated with the TextArea ... if you do not want the (extra) blank line, replace the "\n" with just one "<br/>"

luishp and farhad2008 have reacted to this post.
luishpfarhad2008