«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

Environment Variables Unit

Release: 3.0.0
Date: 30 January 2014
Delphi Compatibility:
D1 D2 D3 D4 D5 D6 D7 D2005 D2006 D2007 D2009 D2010 DXE DXE2 DXE3 DXE4
Red LED Red LED Red LED Grey LED Grey LED Grey LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED

Install Info

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 Demos directory.

There are three possible ways to use the unit:

  1. The simplest way is the add a copy of PJEnvVas.pas to your projects whenever the unit is needed.
  2. 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.
  3. For maximum portability you can add PJEnvVars.pas to 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 PJEnvVars.pas, PJEnvVars.dcr and 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.