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

Home » Public Forums » archive » Converting INT to STRING out of space...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Converting INT to STRING out of space... [message #43167] Mon, 21 March 2005 07:51
Nuno Oliveira is currently offline  Nuno Oliveira
Messages: 75
Registered: October 2003
Member
If I want to save a file within a cicle and I want the name of the file
to have the number related to the cicle, I have a problem that maybe
someone in here have faced.

Apparently there is no way that I can eliminate a space in a string
made of an integer variable. Try:

number = 3
aux = STRCOMPRESS(STRING(number))
file = 'saving'+aux+'.dat'

And, this way the variable file will be 'saving 3.dat' with a SPACE
inside the string. Any tips of how I can avoid this space?

Greetings,

Nuno
[Message index]
 
Read Message
Previous Topic: Re: Get X and Y (sample,line) of an ENVI ROI
Next Topic: �۸u Free Lance �����u�@��@�W.............

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

Current Time: Sat Oct 11 12:31:29 PDT 2025

Total time taken to generate the page: 0.56277 seconds