Create a GUID (globally unique identifier)

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Advanced
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6

More information:
This function creates a globally unique identifier (GUID), such as the ones used in the Windows registry to identify COM objects. Useful anytime you need a unique identifier, e.g., an ID field in a database table

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

Declarations:

Code: