Hi,
Wrote a simple code in autocad VBA that for some reason failed to run:
Function myFunc(p As ACAD_POINT) As Object
Dim r As Object
myFunc = r
End Function
Sub MySub()
Dim p1 As ACAD_POINT
Dim obj As object
set obj = MyFunc(p1)
End Sub
When I execute MySub I get an error message: "object variable or with block variable not set"
does anyone know why ?
Thanks !