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 #20486] Fri, 30 June 2000 00:00 Go to previous message
Steve Hartmann is currently offline  Steve Hartmann
Messages: 21
Registered: March 2000
Junior Member
This topic has been explained very well with lots of good ideas (I've saved
J.D. Smith's message for future reference). I ran into a different type of
problem when I wanted to change some default program parameters of a
run-time application, such as the number and size of some display windows,
default directory locations, etc. I wanted to give the user the .sav
program file as well as a 'defaults' file that the user could change as
desired. The problem is that a run-time application can not compile
anything, so I just put all the defaults in an ascii file and had the
application program open and parse the values. My defaults file is of the
form:

parameter1:value1
parameter2:value2

and I just search for the parameter string and then read in the value for
that parameter. If it's not found, I load some default value.

I think this is an easy way to change the parameters, and probably the best
way to do it for a run-time application, especially for values that you
might want to change frequently.

-Steve Hartmann



Stu wrote:

> 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
[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: Fri Oct 10 07:24:50 PDT 2025

Total time taken to generate the page: 0.72351 seconds