明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2581|回复: 2

“参数不可选”?

[复制链接]
发表于 2004-12-26 04:58:00 | 显示全部楼层 |阅读模式
Public Function CalcPoint(ByVal ZMatr As Integer, _
ByRef minedBlock() As Integer) As AcadDictionary
Dim XMatr, YMatr As Integer
Dim ptDict As AcadDictionary
XMatr = UBound(minedBlock) - 1
....... ....... Set CalcPoint = ptDict
End Function

Public Sub DrawOpenPit()
Dim XMatr, YMatr, ZMatr
Dim ptOpenPit As AcadDictionary Dim minedBlock(47, 29, 25) As Integer
.......
ptOpenPit = CalcPoint(0, minedBlock(47, 29, 25)) ......... End Sub 为什么我一编译的时候,就说 “参数不可选”?
发表于 2004-12-26 09:52:00 | 显示全部楼层

回复

Public Function CalcPoint(ByVal ZMatr As Integer, _
ByRef a As Variant) As AcadDictionary
Dim XMatr, YMatr As Integer
Dim ptDict As AcadDictionary
XMatr = UBound(a) - 1 Set CalcPoint = ptDict
End Function Public Sub DrawOpenPit()
Dim XMatr, YMatr, ZMatr
Dim ptOpenPit As AcadDictionary Dim minedBlock(0 To 2) As Integer
minedBlock(0) = 47: minedBlock(1) = 29: minedBlock(2) = 25
Dim b As Variant
b = minedBlock Set ptOpenPit = CalcPoint(0, b)
End Sub
发表于 2004-12-26 19:25:00 | 显示全部楼层
ptOpenPit = CalcPoint(0, minedBlock(47, 29, 25) -》 ptOpenPit = CalcPoint(0, minedBlock) Public function CalcPoint(ByVal ZMatr As Integer, _
ByRef minedBlock() As Integer) As AcadDictionary
-》 Public function CalcPoint(ByVal ZMatr As Integer, _
ByRef minedBlock) As AcadDictionary
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-27 22:39 , Processed in 0.156893 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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