MrMeReturns
Technical User
I want a string value to be interpreted as a variable name. For example
sTest = "i" & objControl.Name
dTest2 = CDbl(objControl.Value)
adImpericalData(sTest) = dTest2 'This is an array
""i" & objControl.Name" form the name of a constant array index. The way this code stands the value of the variable sTest is interpreted a simply a string - I want it to be interpreted as the name of the constant ""i" & objControl.Name" which refers to an array index value.
Any suggestions?
sTest = "i" & objControl.Name
dTest2 = CDbl(objControl.Value)
adImpericalData(sTest) = dTest2 'This is an array
""i" & objControl.Name" form the name of a constant array index. The way this code stands the value of the variable sTest is interpreted a simply a string - I want it to be interpreted as the name of the constant ""i" & objControl.Name" which refers to an array index value.
Any suggestions?