Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

Create constructor

Project: Environment Variables Unit

Unit: PJEnvVars

Class: TPJEnvVars

Applies to: ~>3.0

constructor Create(AOwner: TComponent);

⚠️ TPJEnvVars has been deprecated. The TPJEnvironmentVars static class should be used instead.


Constructs a new TPJEnvVars component instance.


Only one instance of a TPJEnvVars component is allowed on any form (or to be owned by any component). An attempt to create a second instance with the same owner will cause an Exception to be raised and the duplicate instance will not be created.

Multiple instances can be created by passing nil as the AOwner parameter.