Page 1 of 1

o/p is seq file how get data into in newline

Posted: Tue Jan 24, 2006 4:57 am
by sekr
hi all,

o/p
"hellohow are u " : parameter
this parameter need to be print in next line

like
hello how are
parameter

how to achive this ?

Posted: Tue Jan 24, 2006 5:01 am
by ArndW
Most Windows files use <CR><LF> as the line separator. All you need to do is to add those to characters to your line and it will ensure a line break.
A Derivation such as "'Hello how are you ':CHAR(13):CHAR(10):#ParameterName#" will do this.

(Please note, I corrected the original CHAR() defintions; the first post had them listed incorrectly )

Posted: Tue Jan 24, 2006 6:58 am
by chulett
Ah... octal... gotcha. Thought it was just boo-boo. :wink:

Posted: Tue Jan 24, 2006 7:54 am
by ArndW
I thought I had remembered it correctly but did a quick check in the BASIC PDF document before posting and managed to look at the octal column by mistake and managed to get the post wrong. I wouldn't have caught the error if another person hadn't posted the exact same question in a separate thread and discovered the mistake for me...

Posted: Tue Jan 24, 2006 4:41 pm
by ray.wurlod
This post is very similar to that post - but you can't use Convert() because Windows uses more than one character as its line termination.

Create a stage variable called svCRLF as described in that post to gain some efficiency.