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

Home » Public Forums » archive » Re: STRING( ) confusion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: STRING( ) confusion [message #39377] Wed, 12 May 2004 07:16
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Christopher Lee" <cl@127.0.0.1> writes:

> Hi,
>
> So I was running out of screen real estate, I made my IDL command line
> xterm smaller, and caused a 'feature' of STRING to appear. E.g. If the
> xterm is 55 characters wide
>
> s="abcdefghijlmnopqrstuvwxyz"
> help, string(s,s)
> <Expression> STRING = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrs'...
> ;the string <54 characters
>
> help, string(s,s,"ab")
> <Expression> STRING = Array[2]

I would say, in situations where you need a specific line layout, it's
pretty important to use an explicit FORMAT expression, and not rely on
IDL to format it for you.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Alternative [XY]ticknames on colorbar
Next Topic: return from the dead - apologies

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

Current Time: Fri Oct 10 15:22:26 PDT 2025

Total time taken to generate the page: 0.24212 seconds