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

Home » Public Forums » archive » Re: converting a vector into a string
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 a vector into a string [message #45903 is a reply to message #45900] Thu, 20 October 2005 13:39 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Francois L." <fleduc@lycos.com> wrote in message
news:1129837956.424479@news.drenet.dnd.ca...
> Hello,
>
> Sorry, I am reposting this message again because the previous one
> contained many errors in the header...
>
> I have a vector A (integers):
>> A = [1,2,3,4]
> that I want to convert into a string.
>
> If I use the command
>> B = string(A)
> then B is a string of four elements.
>
> How can I convert A to string in order to have '1234' ? which is not an
> array of four elements...
>
> Well at the end, I want to convert '1234' into the number 1234.
>
> Thank you,
>
> Franois Leduc

IDL> help,long(strcompress(strjoin(string([1,2,3,4])),/rem))

<Expression> LONG = 1234



Cheers,

bob
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Call External Error
Next Topic: Re: Call External Error

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

Current Time: Wed Dec 03 01:48:21 PST 2025

Total time taken to generate the page: 1.35892 seconds