Q: Use of variables with FORMAT [message #7838] |
Thu, 09 January 1997 00:00 |
gunter
Messages: 13 Registered: October 1996
|
Junior Member |
|
|
Suppose I need to print a line of 100 3-digit integers including a single
space in between each one. Then I would use the following:
printf, unit, data_array, format='(100I4)'
where the data_array contains 100 elements in this case. However, this line
appears inside of a routine to wich data_array is passed and data_array does not
always contain 100 elements. Is there some way of replacing the '100' in the
above line with a variable? I've tried the obvious ways I could think of, to
no avail.
Thanks for any help.
Cheers,
david
--
david gunter
http://www.mcs.anl.gov/people/gunter/
-------------------------------------
"When you are a Bear of Very Little Brain, and you Think of Things, you find
sometimes that a Thing which seemed very Thingish inside you is quite
different when it gets out into the open and has other people looking at it."
- A.A. Milne, "The House At Pooh Corner"
|
|
|