【求助】set和call的不同
小弟初学编程,还没入门,请问下面代码中set和call都能实现画直线,它们有什么不同?Public Sub zhixian1()
Dim line As AcadLine
Dim a(0 To 2) As Double
Dim b(0 To 2) As Double
Dim c(0 To 2) As Double
a(0) = 10
a(1) = 10
a(2) = 0
b(0) = 100
b(1) = 100
b(2) = 0
c(0) = 0
c(1) = 10
c(2) = 0
Set line = ThisDrawing.ModelSpace.AddLine(a, b)
Call ThisDrawing.ModelSpace.AddLine(b, c)
End Sub
一个有对象,一个没有对象,可以这么理解吗?
我一般都用set
call没用过 谢谢解答! Call 好像是VB调用含参数的子程序或函数的标准方法吧。
页:
[1]