Determine if An Array is Initialized

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Example Usage:

  Dim s() as string
  Debug.Print IsArrayInitialized(s) 'Returns False
  redim s(4) as string
  Debug.Print IsArrayInitialized(s) 'Returns True

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

Declarations:

Code: