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

Home » Public Forums » archive » Re: 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 #27005] Mon, 08 October 2001 21:09 Go to previous message
george.mccabe is currently offline  george.mccabe
Messages: 10
Registered: October 2001
Junior Member
sean,

here are some examples of long string output with&without imbedded
linefeed characters,

astr='11111111111111111111111111111111111111111111111111111' +$
'22222222222222222222222222222222222222222222222222222'+$
'3333333333333333333333333333333333333333 and so on...'
print, astr

LF=string(10B)
astr='11111111111111111111111111111111111111111111111111111' +LF+$
'22222222222222222222222222222222222222222222222222222'+LF+$
'3333333333333333333333333333333333333333 and so on...'

print,format='("11111111111111111111111111111111111111111111111111111 ",/,'+$
' "22222222222222222222222222222222222222222222222222222",/,'+$
' "3333333333333333333333333333333333333333 and so
on...")'

best of luck,
george

"Sean Raffuse" <sean@me.wustl.edu> wrote in message news:<9pt7ro$krc$1@newsreader.wustl.edu>...
> Hello.
>
> I'm trying to format some data into one long line of various types of data.
>
> My simple problem is that I am out of room to write the code on one line.
> Normally, you can use the '$' to continue your code on the next line.
> However, this does not work inside strings. Is there an analogous character
> or magic combination of characters that does the same thing? If not, how
> can I format my ridiculously long and complex output?
>
> Thanks in advance.
>
> -Sean Raffuse
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: where can I find good filter?
Next Topic: Re: Possibly O/T: printing IDL code in colour

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

Current Time: Sat Oct 11 05:37:49 PDT 2025

Total time taken to generate the page: 0.32077 seconds