btbass
Advanced Member level 5

vb.net function name as variable
I have a COM dll that I am using that has a function named 'GetType' that returns an int.
VB.Net has a function with the same name.
When I try
Dim MyApp As Object
Dim value As Integer
'Code here that initialises MyApp Object
'Then I try the call
value = MyApp.GetType
Vb flags an error and insists on trying to call it's own 'GetType' function, which returns an object.
There must be a way to resolve function name clashes?
Can any body help to solve this problem?
I have a COM dll that I am using that has a function named 'GetType' that returns an int.
VB.Net has a function with the same name.
When I try
Dim MyApp As Object
Dim value As Integer
'Code here that initialises MyApp Object
'Then I try the call
value = MyApp.GetType
Vb flags an error and insists on trying to call it's own 'GetType' function, which returns an object.
There must be a way to resolve function name clashes?
Can any body help to solve this problem?