Re: carriage return in a print() statement

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 3 Mar 2008 02:56:43 -0700 (MST)

Hi Saji,

You will need to use the newline character, which is represented
by the integer "10". You can convert this to a character:

   cr = inttochar(10)
   print ("hello" + cr + "world")

--Mary

On Mon, 3 Mar 2008, Saji N. Hameed wrote:

> Dear All,
>
> Is there a way to put a carriage return in a print statement?
> I tried to do the following but does not work
>
> msg=" First line \n Second line"
>
> and
>
> msg=" First line ~C~ Second line"
>
> and
> msg=" First line :C: Second line"
>
> print(msg)
>
> but none of the above seems to work..
>
> any suggestions will be appreciated.
> saji
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 03 2008 - 02:56:43 MST

This archive was generated by hypermail 2.2.0 : Mon Mar 03 2008 - 07:07:24 MST