Probably not the best way to state that. Say I have a user-defined type,
Type Foo (A as String, B as String, C as String, D as String, E as String)
And I read in a text file containing the following:
A="one value"
B="another value"
E-"a third value"
Let's say I read each line of the file as InputLine. Is there any way to do the following:
TheVariable = InputLine.CharAt(0)
Foo.'TheVariable' = (value from the = sign onward)
In other words, directly deposit the information into the element of the Type referenced by the string value of another variable?
I suppose I could load the Type using a bunch of IF statements, or a Select...Case block, but this seemed shorter if it's possible.
Any help at all is definitely appreciated! Thanks!
Type Foo (A as String, B as String, C as String, D as String, E as String)
And I read in a text file containing the following:
A="one value"
B="another value"
E-"a third value"
Let's say I read each line of the file as InputLine. Is there any way to do the following:
TheVariable = InputLine.CharAt(0)
Foo.'TheVariable' = (value from the = sign onward)
In other words, directly deposit the information into the element of the Type referenced by the string value of another variable?
I suppose I could load the Type using a bunch of IF statements, or a Select...Case block, but this seemed shorter if it's possible.
Any help at all is definitely appreciated! Thanks!