tcrabtree
30th January 2003, 18:27
What is the Baan equivalent of the newline character.

In VB, for example, you can say:

Dim strNewLine As String

strNewLine = Chr(13)


How does that work in Baan? I need to append a newline character to a string but don't know how to do it. I'd rather not use a function that "does it for me."
I'd like to know how to do it myself. Thanks in advance for your help.

NPRao
30th January 2003, 19:59
Please refer to the link - New Line (http://www.baanboard.com/baanboard/showthread.php?s=&postid=20624#post20624)

OmeLuuk
3rd February 2003, 10:19
klesch (on the other thread): Add chr$(10) to the end of each line that you write to a file. Maybe opening a file in binary mode before that is a good idea.

(If your file will only be used in Windows environment, then chr$(10) & chr$(13) can be used.)Some background: On the old typewriter, a newline was 1 line feed (roll paper one position up) and 1 carriage return (that is where the return is from) where the paper was moved to the right hand side, thus positioning the cursor on the first position on the left hand side.

DOS and also Windows is fully backward compatible, so they maintain a chr$(10)&chr$(13) sequence as a <EOL> (end-of-line), where Unix (and also Baan) do only use the more efficient chr$(10) only.