Deletes a local or environment variable
Source position: amigados.pas line 2236
function DeleteVar( |
name: PChar; |
flags: Cardinal |
):LongBool; |
name |
|
Pointer to an variable name. Note variable names follow filesystem syntax and semantics. |
flags |
|
combination of type of var to delete (low 8 bits), and flags to control the behavior of this routine. Currently defined flags include: GVF_LOCAL_ONLY - delete a local (to your process) variable. GVF_GLOBAL_ONLY - delete a global environment variable. The default is to delete a local variable if found, otherwise a global environment variable if found (only for LV_VAR). |
If not 0, the variable was sucessfully deleted, 0 indicates failure.
Deletes a local or environment variable.
The default is to delete a local variable if one was found, or to delete a global environmental variable otherwise.
A global environmental variable will only be deleted for the type LV_VAR.
|
Returns the value of a local or global variable |
|
|
Sets a local or environment variable |
|
|
Finds a local variable |
|
|
Delete a file or directory |