PropertyExists Routine Using TLBINF32.DLL

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Intermediate
Author:
Tony Starkey

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This routine allows you to determine if a property exists for an object; you can also modify it to check if a function or subroutine exists (see comments). A reference to TypeLib Information (tlbinf32.dll) is required.

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

Declarations:

Code: