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

Home » Public Forums » archive » Re: create string of fixed length
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: create string of fixed length [message #47882 is a reply to message #47879] Wed, 08 March 2006 00:28 Go to previous messageGo to previous message
mmeron is currently offline  mmeron
Messages: 44
Registered: October 2003
Member
In article <dum2em$kdo$1@dolly.uninett.no>, Jan Kristian Jensen <jankj11_nospam_remove_@_bluezone.no> writes:
> justspam03@yahoo.de wrote:
>> How does one create a string of fixed length, say a string consisting
>> of 168 space characters?
>
> And you could always apply brute force:
>
> space = ' '
> longspace = ''
> for i = 0, 167 do longspace = longspace + space
>
What's wrong with

longspace = string(replicate(32b,168))

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
Read Message
Read Message
Previous Topic: About REGRESS.pro
Next Topic: Re: IDL Unix Color Problem

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

Current Time: Sat Oct 11 04:26:58 PDT 2025

Total time taken to generate the page: 1.02093 seconds