変数名 Is Nothing で オブジェクトが Nothing であれば True が返される。
例)
If objectx Is Nothing Then
MsgBox "インスタンスができていません。"
End If
tags: VisualBasic zurazure
Posted by NI-Lab. (@nilab)
変数名 Is Nothing で オブジェクトが Nothing であれば True が返される。
例)
If objectx Is Nothing Then
MsgBox "インスタンスができていません。"
End If
tags: VisualBasic zurazure
Posted by NI-Lab. (@nilab)