void GetSelectedObsNumbers( Matrix mObsNumbers <, boolean bIntersectionMode> )
Matrix mObsNumbers
Upon return, contains a column vector of the observation numbers (1-based) of the selected observations.
boolean bIntersectionMode
If bIntersectionMode is true and the DataObject is in Local Selection Mode, an observation is considered selected if it is selected in all Selector views. If bIntersectionMode
is false and the DataObject is in Local Selection Mode, an observation is considered selected if it is selected in any Selector view. If the DataObject is in Global Selection
Mode, this parameter is ignored. Calling this method without specifying the bIntersectionMode parameter is equivalent to calling it with bIntersectionMode equal to false.
This method retrieves the observation numbers of the observations that are selected in the DataObject.
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 );
dobj.GetSelectedObsNumbers( mSelectedObs );
print mSelectedObs;