用if myobject=Nothing不行,又没有如IsNothing()的函数,到底该如何进行这样的判断?我刚用vb,请大家一定帮帮忙。
Private Sub Command1_Click()
Dim Myobject As Object
Set Myobject = Form1
If Myobject Is Nothing Then
MsgBox "Myobject为空"
Else
MsgBox "Myobject不为空"
End If
End Sub