Determining If A Byte Array or a String Is Initalized Using StrPtr

Category:
String Manipulation
Type:
Snippets
Difficulty:
Intermediate
Author:
neophile

Version Compatibility: Visual Basic 6

More information:
I stumbled upon this one accidentally. The same function can be used to tell if a string or an array has been initialized. For arrays, it will only work with byte arrays.

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

Declarations:

Code: