DataTable.ShowVarLabels

Prototypes

void ShowVarLabels( <boolean bShow> )

Parameters

boolean bShow
If bShow is true, the column headers in the data table will display the labels of the variables. If bShow is false, the column headers will display the names of the variables. Calling this method without a parameter is equivalent to calling it with bShow equal to true.

Remarks

This method controls whether the names or the labels of the variables are displayed in the column headers of the data table. If a variable has no label, the variable's name is always displayed.

By default, the data table displays the names of the variables in the column headers.

Example
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
y = 1990:1999;
dobj.AddVar( "y", "Year", y );
declare DataTable table;
table = DataTable.Create( dobj, false );
table.ShowVarLabels();
table.ActivateWindow();