変数名 Is Nothing で オブジェクトが Nothing であれば True が返される。
例)
If objectx Is Nothing Then
MsgBox "インスタンスができていません。"
End If
tags: VisualBasic zurazure
Posted by NI-Lab. (@nilab)
年末調整の時期 - オブジェクトが Nothing であるか調べる方法 (2002-11-13)変数名 Is Nothing で オブジェクトが Nothing であれば True が返される。
例)
If objectx Is Nothing Then
MsgBox "インスタンスができていません。"
End If
tags: VisualBasic zurazure
Posted by NI-Lab. (@nilab)
by NI-Lab.