Page 1 of 1

Posted: 28 Aug 2016, 22:45
by ahonoe
Any suggestions as to how to embed at a carriage return/line feed in the string output of a script?

Something like this:

s:= 'SET_VAR DROP_FILENAME "C:Hollyhockspatchesmake_tr_selector_button_top.pat"' +<CR/LF> +
'SET_VAR DROP_SHORT_FILENAME "make_tr_selector_button";

I've tried adding #13#10 between the two string segments but only the first part of the string is recognised by hh.

Thanks!

Posted: 29 Aug 2016, 03:44
by shawnb
Did you use +, e.g.,
str := 'Newline' + #13 + #10

I haven't tried this, but it'd be the first thing I'd try...

Posted: 31 Aug 2016, 23:19
by ahonoe
Thanks Shawn. Not sure if I tried putting a "+" between the hash signs. I'll give it a try.

Posted: 01 Sep 2016, 04:39
by shawnb
A quick test using either of the following work:
trace ('line1'+#13+#10+'line2');
trace ('line1'+#13#10+'line2');

Maybe it depends where you're using it?