VB6 equivalent of string.IsNullOrEmpty

后端 未结 7 1408
野趣味
野趣味 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:08

    I tried, If str = "" Then

    but it did not work.

    The best way to identify if the given string is null is:

    If IsNull(str) Then

    ' This will work perfectly

提交回复
热议问题