I need to find out if a function exist before calling the function in VB.
Printable View
I need to find out if a function exist before calling the function in VB.
If it is a VB function, when you compile before run, Cntrl+F5 ( or set the "Compile on demand" on options tab), VB will say that the particular fn doesn't exist.
If it is a dll function, you are linking at run time, then put a On Error Goto Hell and look for error "Dll function not found (453)" or "Error loading dll (48)" etc. Same for Act-x comps also
But, I am wondering if it is possible to get a list of functions for an Active-x component?! at runtime.
At design time, you can add a reference and get the list of functions. will Check this!
RK