Dim ver as Integer
dim procToCall as String
ver = 101
procToCall = "upd" & ver
CallByName myclassInstace, procToCall, vbMethod
EDIT: myClassInstance - , .
.. , Person, ToString.
dim somePerson as new Person
CallByName somePerson, "ToString", vbMethod
However, do not use this programming style.
How many such methods exist to call a method in this form?
source
share