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

Home » Public Forums » archive » Dynamic 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
Dynamic format. [message #50300] Tue, 26 September 2006 12:46
Hanford is currently offline  Hanford
Messages: 2
Registered: September 2006
Junior Member
Dynamic format.

Hello.

The following little program fails.

pro temp

cols = 120
a = indgen(cols,12)

openw, /get_lun, unit, '~/temp/whatever.dat'
printf, unit, a, fomat = '(colsI)'

free_lun, unit

end

This is not working. It seems that format requires a number, it does
not like cols. Is there a way to format this text in such a way the
carriage return is at the end of the row. Using 'printf, unit, a'
causes the carriage return to be interspersed and at the end.

Cheers,
Hanford.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to deal with this error while using MAKE_DLL ?
Next Topic: SetProperty of a COM object..

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

Current Time: Thu Oct 09 07:30:36 PDT 2025

Total time taken to generate the page: 0.71885 seconds