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

Home » Public Forums » archive » a simple question about 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: A simple question about strings [message #48077 is a reply to message #27012] Mon, 20 March 2006 12:03 Go to previous messageGo to previous message
mmeron is currently offline  mmeron
Messages: 44
Registered: October 2003
Member
In article <1142879866.627909@pwww.drenet.dnd.ca>, "Fritz" <f.leduc@hotmail.com> writes:
> Hello,
>
> The command
>> A = string(indgen(5))
> produces an array of five elements:
> [0 1 2 3 4 5]
>
> The command
>> B = '01234'
> produces an array of one element:
> 01234
>
> How to transform A so it becomes the same as B ?
>
a = strcompress(strjoin(string(indgen(5))),/remove)

Mati Meron | "When you argue with a fool,
meron@cars.uchicago.edu | chances are he is doing just the same"
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to debug seg fault.
Next Topic: how to exchange variable between modal dialog and the main window?

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

Current Time: Wed Oct 08 18:38:20 PDT 2025

Total time taken to generate the page: 0.00405 seconds