I read in other posts that there are no references in VBScript -
however, it's possible to use this....
foo = "bar"
bar = "blah"
msgbox eval(foo)
How would this apply to getting variables from fields? I've got a form
which has various fields (in an HTA), lets say they are called "fld1",
"fld2" etc.... how would I get the values from these fields using a
variable reference....
If I were to do this to display "fld1", it would work....
Msgbox fld1.Value
But I actually want to do it like this (but it doesn't work
obviously!)...
foo = "fld1"
msgbox eval(foo).Value
Is there a way of writing the above, or a workaround so I can grab the
field values using a variable reference instead of direct variable
name??
Please end my hours of brainfry!!!
Cheers,
Simon