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

Home » Public Forums » archive » concatenating strings
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: concatenating strings [message #85696 is a reply to message #85694] Tue, 27 August 2013 16:32 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Just to add a little hint, try using help:

IDL>help, STRING(year)
<Expression> STRING = ' 2011'

Now, you can clearly see the blanks.

And yes, "+" is doing concatenation:
IDL> help, string(year) + string(mon) + string(day)
<Expression> STRING = ' 2011 10 21'

A piece of advice, since you're starting out: be careful with "print". Sometimes, you think something has gone terribly wrong, when in fact everything's OK:
IDL> a = 14.12345
IDL> print, a
14.1235

Did IDL truncate my number? No, it's just a limitation of the default print format:
IDL> print, a, FORMAT='(F10.6)'
14.123450
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What subprogram? What parameters and keywords?
Next Topic: Emacs IDLWAVE

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

Current Time: Thu Oct 09 23:02:05 PDT 2025

Total time taken to generate the page: 1.11793 seconds