过滤器的问题,大家来看看我设置得错没有
<P>我想过滤出其中几个层的TEXT数据,我这样写对不对啊,出不来结果啊</P><P>Dim sset1 As AcadSelectionSet</P>
<P>Dim FilterType(3) As Integer<BR>Dim FilterData(3) As Variant<BR>FilterType(0) = 0<BR>FilterData(0) = "text"<BR>FilterType(1) = 8<BR>FilterData(1) = '"one" '</P>
<P>filterdata(2)=8</P>
<P>filtertype(3)="two"</P>
<P>filterdata(3)=8</P>
<P>filtertype="three"<BR><BR>sset1.Select acSelectionSetAll ,, , Filterdata, Filtertype</P> <P>写得有问题啊!</P>
<P>似乎应该这样吧:</P>
<P>Dim sset1 As AcadSelectionSet</P>
<P>Dim FilterType(5) As Integer<BR>Dim FilterData(5) As Variant<BR>FilterType(0) = 0<BR>FilterData(0) = "text"<BR>FilterType(1) = -4<BR>FilterData(1) = "<or"</P>
<P>filtertype(2)=8</P>
<P>filterdata(2)="one"</P>
<P>filtertype(3)=8<BR>filterdata(3)="two"</P>
<P>filtertype(4)=8</P>
<P>filterdata(4)="three"</P>
<P>filtertype(5)=-4</P>
<P>filterdata(5)="or>"</P>
<P><BR>sset1.Select acSelectionSetAll ,, , Filterdata, Filtertype</P> <DIV>好象不用这么复杂吧</DIV>
<DIV>FilterData(1) = '"one,two,three" 应该就可以的</DIV>
页:
[1]