Delete class method

Project: Environment Variables Unit

Unit: PJEnvVars

Class: TPJEnvironmentVars

Applies to: ~>3.0

class function Delete(const VarName: string): Integer;

Description

Deletes the environment variable with the given name in the current process. If the environment variable does not exist the method does nothing.

Parameters:

Returns:

A description of any error can be found by passing the returned error code to SysErrorMessage from the SysUtils or System.SysUtils unit.

Note: This method does not update the system’s environment variables, only the copy of the environment maintained by this program. Changes are lost when the program terminates.