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

Home » Public Forums » archive » Re: 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
Re: Converting INT to STRING out of space... [message #43165 is a reply to message #43163] Mon, 21 March 2005 08:00 Go to previous messageGo to previous message
tam is currently offline  tam
Messages: 48
Registered: February 2000
Member
Nuno Oliveira wrote:

> 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
>
Try the /remove_all option in strcompress. Should do the trick.

Regards,
Tom McGlynn
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C Alignment/IDL structures
Next Topic: IRIG Time Stamp to Julday

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

Current Time: Thu Oct 09 23:01:11 PDT 2025

Total time taken to generate the page: 1.60444 seconds