If XXX Is Nothing Then

解决方案 »

  1.   

    来晚了:(if ooo is nothing then 
    end if
      

  2.   

    isEmpty() 返回布尔值,表示一个变量是否被初始化。
      

  3.   

    if 变量 is nothing then 
    end if
      

  4.   

    if 对象变量 is nothing then 
    ...
    end if
      

  5.   

    Dim colTemp As Control
    For Each Control In Form1
        If Control Is Nothing Then
            ...
        End If
    Next Control
      

  6.   

    if Obj is nothing then 
    end if