0
我在寫一個VBA宏,並且已經導入了mscorlib.dll以引用System.Math。錯誤424:調用外部庫時需要的對象
Sub draw16mmButtonHole()
Dim test As Double
test = System.Math.ASin(0) 'this is where the error happens
End Sub
顯然錯誤424時調用返回的對象通常發生,並且可以通過附加set
給變量賦值被固定;然而,這裏發生了同樣的錯誤。