New Line Character

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

New Line Character

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:30 pm

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!

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: New Line Character

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:30 pm

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 ------------------------------------------------------------------


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 33 guests