Docs » Autodocs » dos.library » DeleteVar
DeleteVar -- Deletes a local or environment variable (V36)
success = DeleteVar( name, flags ) D0 D1 D2 BOOL DeleteVar(STRPTR, ULONG )
Deletes a local or environment variable.
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).
success - If non-zero, the variable was sucessfully deleted, FALSE indicates failure.
LV_VAR is the only type that can be global
GetVar(), SetVar(), FindVar(), DeleteFile(), <dos/var.h>
|