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

Home » Public Forums » archive » STRING( ) confusion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
STRING( ) confusion [message #39384] Wed, 12 May 2004 02:41
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
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]
;the string >=54 characters

print, string(s,s,"ab")
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
ab

Does anybody know why this might happen? The same happens in the idlde,
where the number of characters used is the terminal size when the idlde
is launched. (Redhat 7.3, I think).



Chris.
[Message index]
 
Read Message
Previous Topic: get image location?
Next Topic: colorbar and [XY]tickname

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

Current Time: Fri Oct 10 03:09:53 PDT 2025

Total time taken to generate the page: 1.04550 seconds