Table of Contents

CzVar::Create

Description

Create a new variable and attach it to this CzVar object.

Function prototype

bool CzVar::Create(long VarID, const char* lpVarName = 0);

Arguments

Name Type Comment
VarID long The variable type ID of the variable to be created.
lpVarName const char* A handle to a C-style string containing the name of the new variable.

Return value

False if an error occurred, and true otherwise.

Comments

Variable names

If the lpVarName argument is null or the string is zero-length, the variable is created using the var_CreateTemp function. Otherwise, the variable is created using var_Create. Please consult the comments for var_Create for more information on variable names, such as how to do variable nesting.