Table of Contents

var_Delete

Description

Delete a variable.

Function prototype

bool CExtAPI::var_Delete(ZVAR hVar);

Arguments

Name Type Comment
hVar ZVAR A ZVAR handle to the variable to be deleted.

Return value

False if an error occurred, and true otherwise.

Comments

Once the variable has been deleted, the ZVAR handle becomes unassigned and cannot be used without first re-assigning it to another variable (e.g. using var_Create, var_GetVar, list_GetItemA, etc). Using an unassigned ZVAR is a sure way to get a general protection fault from Windows.