Question on use of LineTerminator

SyntaxEditor for Windows Forms Forum

Posted 4 years ago by Mike Dempsey - Sr. Developer, Teradata Corp
Version: 14.1.0322
Avatar

If I use GetSubstring() to request text with a specific LineTerminator does it apply to ALL the text or just to text that is not within quotes?

I was assumming it applied to all text since quotes may not always denote strings but I wanted to check.

A user has reported \r characters causing problems for them even though I select the string using the CarriageReturn option.
I thought that meant it would return only \n at the line ends and therefore there could not be any \r characters in the string. 

Comments (1)

Answer - Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Mike,

When you use the overload of GetSubstring that takes in a LineTerminator, all the lines in that substring will end with the line terminator you specify.  But note the CarriageReturn value is \r.  Newline is \n.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.