Is This Content Helpful?
We're glad to know this article was helpful.
A variant of type IUnknown must be used as a FilterShape in some development environments.
vaPoly := OleVariant(filterShape);
layer.FilterOperator := moAreaIntersect;
layer.FilterShape := IUnknown(vaPoly);
In Visual C++:
vShape.vt = VT_UNKNOWN;
vShape.punkVal = filterShp.m_lpDispatch;
In Visual Basic simply write the shape into the FilterShape property.
layer.FilterOperator = moAreaIntersect
Set lyr.FilterShape = shp