How to present the EndOfLine string?


Guest

How to present the EndOfLine string?

In VB, it is chr(13) & chr(10)
In C, it is "\r\n"

But in AppBuilder, how to present it?

Thanks a lot. :)


DecSoft

Hello Zeng,

Thanks for posting and for your interest in my work at App Builder. The characters to be used in Javascript are "\r" for return carriage and "\n" for new line. What is your scenario or, in other words, where you need to use such characters?



Guest

Thanks a lot, I got it.

I wrote a function to append messages in a textarea control, like this:

I used "\r\n" directly and it works well. :p


DecSoft

Hello Zeng,

Yes; certainly you can use "\r\n" and probably "\n" along also can works for your desired results.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.