comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Formatting output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Formatting output [message #23596 is a reply to message #23439] Mon, 29 January 2001 12:07 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL Display under RH7
Next Topic: IDL and Unix group permission problem...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 03:08:18 PDT 2025

Total time taken to generate the page: 0.00646 seconds