====== 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 [[zeolite:varID|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 [[zeolite:functions:var_CreateTemp]] function. Otherwise, the variable is created using [[zeolite:functions:var_Create]]. Please consult the comments for [[zeolite:functions:var_Create#Comments|var_Create]] for more information on variable names, such as how to do variable nesting.