VB6 equivalent of string.IsNullOrEmpty

后端 未结 7 1358
野趣味
野趣味 2020-12-29 20:40

I\'m doing some work on a legacy application, and my VB6 skills aren\'t that great. I need to check whether a String field has been initialized and set to something other th

相关标签:
7条回答
  • 2020-12-29 21:25

    As 'Nulls' and 'Empty Strings' are actually different values, this approach can capture both for you easily:

    If strValue & "" = "" Then
        'This is Null
    Else
        'This is NOT Null
    End If
    
    0 讨论(0)
提交回复
热议问题