My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TPJEnvVars  
TPJEnvVars class description.
Updated May 8, 2011 by delphidabbler

TPJEnvVars

Project: Environment Variables Unit.

Unit: PJEnvVars.

This component provides access to the environment variables in the current process' environment block. Environment variables can be read, created, updated or deleted. The names of all available environment variables can also be enumerated.

Only one instance of a TPJEnvVars component can be placed on any form. An attempt to place further instances on a form causes an exception to be raised.

Methods

TPJEnvVars defines the following methods in addition to those inherited from TComponent.

Method Description
Create Object constructor. Permits only one instance to be placed on any form.
DeleteVar Deletes an environment variable.
EnumNames This is a redundant method provided for backward compatibility reasons only. It enumerates all environment variable names, passing each name to a callback method. GetEnumerator or for..in loops, where supported, should be used in preference.
GetEnumerator Creates an enumerator that can be used to enumerate all environment variable names. On Delphi 2005 and later this enumerator enables the for..in construct to be used with the component.

Properties

TPJEnvVars defines the following properties in addition to those inherited from TComponent.

Property Description
Count Returns the number of environment variables.
Values Provides read / write access to environment variables.

Events

TPJEnvVars defines no events.


Sign in to add a comment
Powered by Google Project Hosting