过滤写法为什么不对
<P>本人想在图形中只选块或半径大于等于0.8的圆为什么如下程式有错,请了解的大师修改一下,谢谢</P><P>Dim Ftype(7) As Integer, Fdata(7) As Variant<BR>Ftype(0) = -4: Fdata(0) = "<or"<BR>Ftype(1) = 2: Fdata(1) = "*"<BR>Ftype(2) = -4: Fdata(2) = "<and"<BR>Ftype(3) = -4: Fdata(3) = ">="<BR>Ftype(4) = 0: Fdata(4) = "Circle"<BR>Ftype(5) = 40: Fdata(5) = 0.8<BR>Ftype(6) = -4: Fdata(6) = "and>"<BR>Ftype(7) = -4: Fdata(7) = "or>"<BR>ssetobj.SelectOnScreen Ftype, Fdata<BR></P> <P>我已搞定</P>
<P>Dim Ftype(7) As Integer, Fdata(7) As Variant<BR>Ftype(0) = -4: Fdata(0) = "<or"<BR>Ftype(1) = 2: Fdata(1) = "*"<BR>Ftype(2) = -4: Fdata(2) = "<and"<BR>Ftype(3) = 0: Fdata(3) = "Circle"<BR>Ftype(4) = -4: Fdata(4) = ">="<BR>Ftype(5) = 40: Fdata(5) = 0.8<BR>Ftype(6) = -4: Fdata(6) = "and>"<BR>Ftype(7) = -4: Fdata(7) = "or>"<BR>ssetobj.SelectOnScreen Ftype, Fdata<BR>为什么顺序不对有如此大的差别,有人可以解释吗</P> <P>过滤器对应一个条件表达式</P>
<P>错的过滤表达的是:</P>
<P>dxf0>="circle" and dxf40=0.8,和题目要求不符</P>
页:
[1]