Page 1 of 1

New Line Character

Posted: Fri Aug 07, 2009 12:30 pm
by ConvertFromOldNGs
by Jade Starter >> Sat, 17 Jan 2004 0:52:44 GMT

Hi everybody,

So far I have not been successful how to write a new line character in a string.

The closest I got to was:
c: Character;
c := #'13';
string := c.String;

Unfortunately I wasn't successful. Does anybody know the proper way?

Thanks!

Re: New Line Character

Posted: Fri Aug 07, 2009 12:30 pm
by ConvertFromOldNGs
by allistar >> Sat, 17 Jan 2004 22:11:35 GMT

There are three JADE constants that you will find useful:

Cr, Lf and CrLf. So to make a String that has two separate lines you could do this:

string := "line 1" & CrLf & "line 2";

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------