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

Home » Public Forums » archive » Re: Appending Numbers to Strings in IDL
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: Appending Numbers to Strings in IDL [message #48988 is a reply to message #48987] Mon, 05 June 2006 14:59 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
steve wrote:
> Hey Todd,
> You just need to use StrTrim to get rid of the leading spaces. So when
> you create your string you would do it like this:
> name + StrTrim(string(variable),2)

And, as an added bonus, you can even eliminate the string(). Strtrim does it fer free! :o)

IDL> i=1
IDL> print,'>',i,'<'
> 1<
IDL> print,'>',strtrim(i,2),'<'
>1<

paulv



--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
Ph: (301)763-8000 x7748
Fax:(301)763-8545
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idl license installation under debian sarge amd64
Next Topic: .Reset_Session in a script

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

Current Time: Fri Oct 10 00:45:54 PDT 2025

Total time taken to generate the page: 0.50732 seconds