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.


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.