DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


AddVarSetToRepos

Declaration: AddVarSetToRepos (Identifier: string; Varix: TIntArray; VarNames: TStrArray): integer;
The function AddVarSetToRepos adds a set of variables to the variable set repository. The parameter Identifier contains the name of the variable set, the arrays Varix and VarNames contain the variable indices and the variable names, respectively.

The function returns the following error codes:

>0 ... everything is OK, the function returns the index of the new entry in the repository
-1 ... the Identifier contains an invalid character
-2 ... the length of Varix and VarNames is not the same
-3 ... the list of variables is empty
-4 ... one or several VarNames contain invalid characters