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

Home » Public Forums » archive » Re: include file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: include file? [message #20500 is a reply to message #20494] Thu, 29 June 2000 00:00 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
Stu <stu.c@freeuk.com> wrote in message news:395B0B0C.C0A5715D@freeuk.com...
> Hi,
> I have several different routines that all set up the same or slightlly
> different constants etc at the beginning,
> is it possible to have all the constants in one file, and have all my
> functions/procedures reference this file
> when they start? It would make for easier maintainence this way. How
> would it be done? I can't see a
> normal function or procedure doing the job as you would have to ask for
> each constant explicitly, which is a
> bit of a pain.
>
> cheers,
> Stu
>


You can make system variables in your startup.pro file
For instance, in mine I have the following:

DEFSYSV, '!imag', complex(0,1)
DEFSYSV, '!twopi', 2*!dpi


(this also avoids the problem of having common blocks,
where you may inadvertently confuse local and global variables
(artificially I guess, but the " ! " at the front of the name is
a good way to identify global variables))

Cheers,
bob stockwell
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FFT-help!
Next Topic: Re: Sort and Where - SOLVED!

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

Current Time: Tue Dec 02 15:46:18 PST 2025

Total time taken to generate the page: 1.12376 seconds