DataObject.SelectObs

Prototypes

void SelectObs( Matrix mObsNumbers <, boolean bExtend> )

Parameters

Matrix mObsNumbers
A vector containing the observation numbers (1-based) of the observations to select. To specify all the observation numbers in the DataObject, use the predefined constant OBS_ALL.

boolean bExtend
If bExtend is true, the specified observations extend any existing selection. If bExtend is false, any existing selection is cleared before the specified observations are selected. Calling this method without specifying the bExtend parameter is equivalent to calling it with bExtend equal to true.

Remarks

This method selects specific observations in the DataObject.

Example
mData = { 20 165,
          30 170, 
          40 175, 
          50 180, 
          60 170, 
          70 160 }; 
mVarNames = { "Age", "Weight" };
declare DataObject dobj;
dobj = DataObject.Create( "Sample Data", mVarNames, mData, false );
DataTable.Create( dobj ).ActivateWindow();
mObs = { 2 3 };
dobj.SelectObs( mObs );
See Also

DataObject.SelectAllObs
DataObject.SelectObsWhere