Re: STRING( ) confusion [message #39377] |
Wed, 12 May 2004 07:16 |
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
------------------------------------------------------------ --------------
|
|
|