DataTable.ShowVar

Prototypes

void ShowVar( Matrix mVarNames <, boolean bShow> )

Parameters

Matrix mVarNames
A vector that specifies the names of the variables whose columns you want to show or hide. Each string must be a valid SAS variable name.

boolean bShow
If bShow is true, the columns corresponding to the variables listed in the parameter mVarNames are shown. If bShow is false, the columns corresponding to the variables listed in the parameter mVarNames are hidden. Calling this method without specifying bShow is equivalent to calling it with bShow equal to true.

Remarks

This method shows or hides the columns in the data table that correspond to the specified variables. Different data tables can display different subsets of the variables in the associated DataObject. Variables corresponding to columns that have been hidden in a particular data table are still visible in all other areas of the IML Studio user interface.

If you hide a column that is selected, the corresponding variable is deselected.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "iris" );
declare DataTable dt;
dt = DataTable.Create( dobj );
dt.ActivateWindow();
pause "Click the Resume button to continue.";
names = { "petallen", "petalwid" };
dt.ShowVar( names, false );
See Also

DataTable.ShowAllVar