or you could use the CallByName function:
CallByName(Me, "DbVersion01", CallType.Method, Nothing)
I believe the above works only for instance methods. You'll have to use
Reflection to execute shared methods.
Imran.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uO*************@tk2msftngp13.phx.gbl...
KG,
I asked this more to people and never got an answer, you know that those
functions should exist, so you can do this in a case select very easy.
However than comes these questions to do this with a kind of late binding
using reflection.
http://msdn.microsoft.com/library/de...reflection.asp
Why do you want this while it is so easy in a "case select" and test with
that direct all errors?
Cor
"KG" <kg****@csystemssoftware.com>
Hi,
Can I put a function name in a string and run that function.
For example
Function dbVersion01()
....
....
End Function
Dim strFunction as String ="DbVersion01"
Call strFunction
Something like that using delegate or some other way.
Thanks in advance
KG