What's the best way to convert a string to an object reference?
For instance, if I have 3 string variables defined as:
Dim MyString1 as String = ""
Dim MyString2 as String = ""
Dim MyString3 as String = ""
...and then I have a config text file that I read when the application starts that is in the format: VarName, String
MyString1, "mytext1"
MyString2, "mytext2"
MyString3, "mytext3"
How do I do something like:
Object("MyString1").Value = "mytext1"
For instance, if I have 3 string variables defined as:
Dim MyString1 as String = ""
Dim MyString2 as String = ""
Dim MyString3 as String = ""
...and then I have a config text file that I read when the application starts that is in the format: VarName, String
MyString1, "mytext1"
MyString2, "mytext2"
MyString3, "mytext3"
How do I do something like:
Object("MyString1").Value = "mytext1"