明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2050|回复: 4

[VBA]类型不匹配错误,紧急

[复制链接]
发表于 2005-8-25 13:25:00 | 显示全部楼层 |阅读模式

                      'AutoCAD 2005 vba类型不匹配错误
Public Minpoint, Maxpoint As Variant

Private Sub cutphoto9_Click()
  Dim ClipPoints(0 To 99),POINTS(0 To 9),Clippoints1() As Double
  Dim kkkk As Integer
  Ssetobj.Item(0).GetBoundingBox Minpoint, Maxpoint
  number3 = Clipphoto(POINTS, ClipPoints, kkkk, Clippoints1)'调用函数
end sub

Public Function Clipphoto(Pone() As Double, Ptwo() As Double, su As Integer, PPPP() As Double) As Integer
  Dim Minx, Miny, Maxx, Maxy As Double
  Minx = Minpoint(0)'此句出现类型不匹配错误,请问怎么处理,把Minx 定义为Variant同样出错,有时又不会出错
End Function

发表于 2005-8-25 14:20:00 | 显示全部楼层

如此定义:

Dim Minx, Miny, Maxx, Maxy

 楼主| 发表于 2005-8-25 18:35:00 | 显示全部楼层
我试了,还是报错
发表于 2005-8-25 21:05:00 | 显示全部楼层
Dim Minx As Double, Miny As Double, Maxx As Double, Maxy As Double
 楼主| 发表于 2005-8-27 20:32:00 | 显示全部楼层
多谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-27 10:38 , Processed in 0.150873 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表