[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Formatting output
Guillaume Dargaud (dargaud@sung3.ifsi.rm.cnr.it) writes:
> OK, thanks to your replies, I managed to do what I wanted:
> FOR i=0, OrbNum DO xtn[i]=STRING( $
> OrbArra[i,0], OrbArra[i,12], OrbArray[i,13], $
> FORMAT='(I0, "-", I0, "h", I2.2)' )
>
> Which outputs something like "1234-14h30"
>
> Now I'd like to have this result on 2 lines (instead of a '-' separator).
> So I tried FORMAT='(I0, /, I0, "h", I2.2)'
> But I get "Out of range subscript encountered: XTN"
>
> Any idea ?
If you are using this string for something like
an axis or plot title, you might try "!C" in
place of your "/".
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155