K
kit
Dear All
I have a question about object initialization in vb.net. In my program, an
instance "objABC" of object "ABC" is created and it has a method called
"method". The coding just like :
Dim objABC as ABC
objABC.method()
But i have an idea to assign the name of the instance and method
dynamically, just like :
Dim objectname As String
Dim methodname As String
Dim "objectname" as ABC
"objectname"."methodname"()
Is it possible to work like this ?
Thank you for your kind assistance to solve my problem.
Thanks
Kit
I have a question about object initialization in vb.net. In my program, an
instance "objABC" of object "ABC" is created and it has a method called
"method". The coding just like :
Dim objABC as ABC
objABC.method()
But i have an idea to assign the name of the instance and method
dynamically, just like :
Dim objectname As String
Dim methodname As String
Dim "objectname" as ABC
"objectname"."methodname"()
Is it possible to work like this ?
Thank you for your kind assistance to solve my problem.
Thanks
Kit