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

Home » Public Forums » archive » string to array conversion
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: string to array conversion [message #21164 is a reply to message #21005] Thu, 10 August 2000 00:00 Go to previous message
Karsten Schmidt is currently offline  Karsten Schmidt
Messages: 4
Registered: July 2000
Junior Member
Hi Alex, thanks for your answer,
I want to change the stringlength or produce new strings (delete and add
some words), example:

a=string('llllllllllllllllllllllllllllllllllllllllllllllllll llllllllllllllllllllllllllllllllllllllllllllllllllllllllllll llllllllllllllllllllllllllllllllllllllllllllllllllllllllllll llllllllllllllllllllllllllllllllllllllllllllllllllllllllllll llllllllllllllllllllllllllllllllllllllllll')

print,strlen(a)
272
help,a
A STRING =
'lllllllllllllllllllllllllllllllllllllllllllll'...
that's allright,
but if I write:
word=string('long strings are my problem')
together=string(word,word,word,word,word,word,word)
print,strlen(together)
162 27
help,togehter ==> TOGETHER STRING = Array[2]

What's happen and how can I stop it ?

Karsten


Alex Schuster schrieb:

> Karsten Schmidt wrote:
>
>> I want to create very long strings (300 characters and more), but
>> sometimes IDL makes an array with three or four dimensions. How can I
>> stop this conversion ?
>
> Can you give us an example of what exactly you are doing? I did not
> encounter this behaviour before, strings have always worked fine for me.
>
> IDL> help, string( bytarr( 20000 ) + 65b )
> <Expression> STRING =
> 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'...
>
> Alex
> --
> Alex Schuster Wonko@weird.cologne.de PGP Key available
> alex@pet.mpin-koeln.mpg.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: A related question...
Next Topic: Reading in text data

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

Current Time: Sat Oct 11 08:03:48 PDT 2025

Total time taken to generate the page: 2.64067 seconds