Page 1 of 1

include environment variable?

Posted: Tue Dec 11, 2001 7:43 pm
by Don Barclay
I have found in help that I can right click on an include statement (I am writing SQRs) and open up the included file. Typically, the SQC that I want to open is not in the directory that the SQR I am writing resides. See below from the help file:

[Open Include File (Context menu)]
[Clicking with the right button on a line beginning #include ..., adds a command to open the included file to the popup menu. If you choose that command, the file will be opened in a new window.]

[Included files are searched for in the folder containing the active document, and in the list of folders assigned to the INCLUDE environment variable. The syntax for that is the same as for the PATH environment variable.]

My question is. What is the INCLUDE environment variable, and how can I set it?

TIA,
Don

Re: include environment variable?

Posted: Wed Dec 12, 2001 8:25 am
by Jens Hollmann
That depends on your operating system.

Under Windows NT and 2000 right click on the icon on your desktop for your computer. Unfortunately I don't know the name of this icon in english but there shouldn't be too many of them. Under properties you get a dialog with a property sheet "environment". There you can set your environment variables. After changing a value, restart TextPad as every program gets the current environment at startup only and doesn't refresh it.

Under Win 9x you have to put lines like
SET INCLUDE=c:\my_compiler\include;c:\temp
in your autoexec.bat and restart your computer.