L
Lucas Sain
Hi,
I think thta for this I have to use reflection... but I'm not shure.
How can I find/get an object at runtime by looking for its name that is
stored in a variable.
For example:
I have a DataTable called dtPersons that loads all the data of the
persons.
I have a string variable called tableVariable that stores tha name
"dtPersons".
At runtime I want to use this variable to gain access to the DataTable
how can I do this?
How do I create an instace of dtPersons using the string stored in the
variable
regards
Lucas
I think thta for this I have to use reflection... but I'm not shure.
How can I find/get an object at runtime by looking for its name that is
stored in a variable.
For example:
I have a DataTable called dtPersons that loads all the data of the
persons.
I have a string variable called tableVariable that stores tha name
"dtPersons".
At runtime I want to use this variable to gain access to the DataTable
how can I do this?
How do I create an instace of dtPersons using the string stored in the
variable
regards
Lucas