Eliminate Distinction Between Empty, Null, and Uninitialized Values in determining if a Variable is empty

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Intermediate
Author:
Premium Technologies, Inc.

Version Compatibility:

More information:
This function, IsNothing, takes a variant parameter and returns true if a string = "", a number = 0, an object is nothing, an array is uninitialized, or a variant is empty. It will help you deal with the headaches of distinguishing between zero-length strings, empty variants, nulls, etc.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: