Accessing the Filter Method with Optional Arguments

The Filter method has three optional arguments. In this example, only the first argument (CComBSTR( OLESTR("uvspace") )) is really passing data of any significance: l_varTemp and CComBSTR( OLESTR("") ) are empty.

   // Where I've already defined l_spOMFullPropertyColl
   CComVariant l_varTemp;
   l_varTemp.Clear();
   l_hr = l_spOMFullPropertyColl->Filter(
       CComBSTR( OLESTR("uvspace") ),
       l_varTemp,
       CComBSTR( OLESTR("") ),
       &l_spOMPropertyColl );
   FNAssertAndReturn( l_hr );

This is the equivalent to the following VBScript snippet:

   ' Where I've already defined oGeom (Geometry object)
   Set oSamples = oGeom.Clusters.Filter( "sample" )
   logmessage "sample point cluster : " & typename(oSamples)