DataObject.GetVarName

Prototypes

String GetVarName( int nVarNum )

Return Value

The return value is a reference to a String object containing the name of the specified variable in the DataObject.

Parameters

int nVarNum
The column number (1-based) of the variable whose name you want to retrieve.

Remarks

This method returns the name of the specified column's variable.

Example
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare DataObject dobj = DataObject.Create("Simulated Data");
dobj.AddVar( "Pred", "Predictor", x );
dobj.AddVar( "Resp", "Response", y );
declare String sName = dobj.GetVarName( 2 );
See Also

DataObject.GetVarNames