String GetVarName( int nVarNum )
The return value is a reference to a String object containing the name of the specified variable in the DataObject.
int nVarNum
The column number (1-based) of the variable whose name you want to retrieve.
This method returns the name of the specified column's variable.
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 );