[VBA]类型不匹配错误,紧急
<P> 'autocad 2005 vba类型不匹配错误<BR>Public Minpoint, Maxpoint As Variant</P><P>Private Sub cutphoto9_Click()<BR> Dim ClipPoints(0 To 99),POINTS(0 To 9),Clippoints1() As Double<BR> Dim kkkk As Integer<BR> Ssetobj.Item(0).GetBoundingBox Minpoint, Maxpoint<BR> number3 = Clipphoto(POINTS, ClipPoints, kkkk, Clippoints1)'调用函数<BR>end sub</P>
<P>Public Function Clipphoto(Pone() As Double, Ptwo() As Double, su As Integer, PPPP() As Double) As Integer<BR> Dim Minx, Miny, Maxx, Maxy As Double<BR> Minx = Minpoint(0)'此句出现类型不匹配错误,请问怎么处理,把Minx 定义为Variant同样出错,有时又不会出错<BR>End Function<BR></P> <P>如此定义:</P>
<P>Dim Minx, Miny, Maxx, Maxy </P> 我试了,还是报错 Dim Minx As Double, Miny As Double, Maxx As Double, Maxy As Double 多谢
页:
[1]