VB6 equivalent of string.IsNullOrEmpty

VB6 was designed to be easy

Use

If str = "" Then 
  ' uninitialised, null or empty ""
  • Strings are automatically initialized to [edit] a null string.
  • The null string is vbNullString.
  • But don’t worry about null strings. A VB6 null string is indistinguishable from an empty string “” for (almost) any string manipulation.

Leave a Comment