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

Home » Public Forums » archive » Re: how to create a string of 1024 spaces?
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: how to create a string of 1024 spaces? [message #55598 is a reply to message #55590] Fri, 31 August 2007 07:39 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Reimar Bauer wrote:
> Tinwai wrote:
>> How to create a string S which consists 1024 spaces, like '
>> ' ? Thx
>>
>
> IDL> a=make_array(1024,1,val=32b,/byt)
> IDL> help,string(a)
>
> <Expression> STRING = '
> '...
>
> IDL> print,strlen(string(a))
> 1024
>
> cheers
> Reimar

or similiar

a=systime(1)&txt=string(bytarr(1024,1)+32b)&print,sy stime(1)-a

cheers
Reimar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Programmatic size adjustment of widgets under Windows vs. UNIX (was "Natural size of explicitly-sized widget")
Next Topic: Placing constraints on Interpol

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

Current Time: Sun Oct 12 09:39:46 PDT 2025

Total time taken to generate the page: 1.91464 seconds