Articles
Forums
Downloads
Autodocs
Home
/
Autodocs
/
dos.library
NAME
DeleteVar
Deletes a local or environment variable (V36)
SYNOPSIS
success = DeleteVar( name, flags )
D0 D1 D2
BOOL DeleteVar(STRPTR, ULONG )
FUNCTION
Deletes a local or environment variable.
INPUTS
name
Pointer to a variable name. Note variable names follow file system syntax and semantics.
flags
Combination of type of var to delete (low 8 bits), and flags to control the behavior of this function. Currently defined flags include:
GVF_LOCAL_ONLY
delete a local, i.e. 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).
RESULT
success
If non-zero, the variable was successfully deleted, FALSE indicates failure.
BUGS
LV_VAR is the only type that can be global
SEE ALSO
GetVar()
,
SetVar()
,
FindVar()
,
DeleteFile()
, <dos/var.h>