小白求助:VB中显示编译错误: 子程序或函数为定义,该怎么改?
Private Sub Command1_Click()
Dim a, b As Single
Dim lineobj As AcadLWPolyline
Dim points(0 To 9) As Double
a = Val(Text1.Text)
b = Val(Text2.Text)
points(0) = 0: points(1) = 0
points(2) = points(0) + a: points(3) = points(1)
points(4) = points(2): points(5) = points(3) + b
points(6) = points(0): points(7) = points(5)
points(8) = points(0): points(9) = points(1)
Set lineobj = acadapp.ActiveDocument.ModelSpace
显示有问题行
AddLightWeightPolyline (points)
ZoomAll
End Sub