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

Home » Public Forums » archive » Re: 1)analog #define in IDL? 2) get position of a window?
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
Re: 1)analog #define in IDL? 2) get position of a window? [message #4055] Thu, 27 April 1995 00:00
patterso is currently offline  patterso
Messages: 36
Registered: February 1995
Member
Michael Feigin,ARC Research Fellow,AS,951231 (feigin@saturn.gas.unsw.EDU.AU) wrote:

: Dear colleagues,


: 1. The problem is that it's necessary to define some variables in a IDL program
: in such a way that allows easy to change them in the future. I understand
: that it may be implemented via using COMMON BLOCKS but it's extremely poor
: style.

Why is it poor style?

Anyway, the only other way I could think of doing this would be to have
your variables defind in a file, say define.pro, as

variable1= 23l
variable2= 34d001

etc.

and then use an @define.pro near the start of the routine to set them all up.
Then you'd only need to edit define.pro to change their values. As to
whether this is any nicer than common blocks......

Tim Patterson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Q: Encapsulated Postscript - Mac vs. Unix
Next Topic: Deutsche Umlaute

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

Current Time: Thu Oct 09 21:04:58 PDT 2025

Total time taken to generate the page: 1.19818 seconds