String GetVarLabel( String sVarName )
The return value is a reference to a String object containing the label of the specified variable in the DataObject.
String sVarName
The name of the variable whose label you want to retrieve.
This method returns the label of a variable.
declare DataObject dobj; dobj = DataObject.Create( "Sample" ); x = 17:23; dobj.AddVar( "Age", "Student Age", x ); varlabel = dobj.GetVarLabel( "Age" ); print varlabel;