DataTable.ShowLabelVarInHeaders

Prototypes

void ShowLabelVarInHeaders( <boolean bShow> )

Parameters

boolean bShow
If bShow is true, the row headers in the data table will display the values of the label variable. If bShow is false, the row headers will display the observation numbers. Calling this method without a parameter is equivalent to calling it with bShow equal to true.

Remarks

This method controls whether the row headers in the data table display the observation numbers or the values of the label variable. If no label variable has been assigned, the row headers display the observation numbers.

By default, the row headers display the observation numbers.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "baseball" );
dobj.SetRoleVar( ROLE_LABEL, "division" );
declare DataTable dt;
dt = DataTable.Create( dobj );
dt.ShowLabelVarInHeaders();
dt.ActivateWindow();
See Also

DataObject.SetRoleVar