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

Home » Public Forums » archive » Q: Use of variables with FORMAT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Q: Use of variables with FORMAT [message #7838] Thu, 09 January 1997 00:00
gunter is currently offline  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"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Why doesn't this work?
Next Topic: Re: JAVA bindings to RSI IDL

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

Current Time: Wed Oct 08 17:43:32 PDT 2025

Total time taken to generate the page: 0.00588 seconds