Re: a simple question about strings [message #27005] |
Mon, 08 October 2001 21:09  |
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
|
|
|