[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Poll Results: Main routine in an Include file



> As an aside, I'd be interested in people's opinions on what approach I
> should take for determining the paths for looking for included files.  My
> SQR3 manual says the -i switch will provide a list of paths to search if
> the include file is not in the current directory and not explicitly
> pathed(?), but that doesn't really help me as I'm running my own exe not
> SQR.  PeopleSoft provide 4 sqr directories in environment variables but
> they appear to be proprietary in name so I'm guessing it's not universal.

Actually, when PeopleSoft invokes sqr, it uses the "-i" switch to tell it
where to look for the include files.  (The list it passes is set as part of
the configuration; it's not directly from the 4 sqr directories you mention,
but normally the include path and the sqr directories are set to the same
places.)

> The only thing I can think of is to provide a setup field in my program
> where the user can specify a list of paths to search.  Any other ideas?

I think this is a good approach.  Make it a field that looks like the
parameter to the -i switch ("," or ";" separated list of directories, as in
"c:\ps\sqr\,y:\ps\prd\sqr\").  This way, people can just cut-and-paste the
list from their SQR icon or sqr.ini file into your program.  (You might want
have your program ignore a leading "-i" if it finds one in your setup
field.)

                                                Nathan

----------------------------------------------------------------------------
Nathan Treadway    | Ray Ontko & Co. | Software consulting services
nathant@ontko.com  | Richmond, IN    | http://www.ontko.com/