Environment Variables Unit
|Date:||30 January 2014|
The Environment Variables Unit and documentation are supplied in a zip file. Before installing you need to extract all the files from the zip file. The following files will be extracted:
PJEnvVars.pas– The Environment Variables Unit. Contains all source code, including the deprecated component, but excluding the component registration code.
PJEnvVars.dcr– Component palette glyph for the deprecated component.
PJEnvVarsDsgn.pas– Registration code for the deprecated component.
ReadMe.htm– This read-me file.
ChangeLog.txt– The project change log.
MPL-2.txt– The Mozilla Public License v2.0.
Documentation.url– Short-cut to the unit's online documentation.
In addition to the above files you will find the source code for various demo
projects in the
There are three possible ways to use the unit:
The simplest way is the add a copy of
PJEnvVas.pasto your projects whenever the unit is needed.
- To make the unit easier to re-use you can either copy it to a folder on your Delphi search path, or add the folder containing the unit to the Delphi Search path. You then simply use the unit as required without needing to add it to your project.
For maximum portability you can add
PJEnvVars.pasto a Delphi package.
NOTE: None of the above methods will install the deprecated
component into the Delphi IDE. To do this you need to add
PJEnvVarsDsgn.pas to a design time package. If you need help
doing this see here. This is not recommended other than for reasons of backwards compatibility.