Accessing fields from calculated field names
I have a script which generates field names based upon dates. (The field name does not have a date in it, but is simply a combination of a couple of letters and a number) I place this generated field-name into a variable, call it var01. I then wish to either go to the field whose name is the value of var01 or I wish to select the contents of the field whose name is the value of var01. Is there a way to do this?
I have attempted to put the variable var01 into a hidden field, but even then, I have trouble going to or selecting the field whose name is the value of the hidden field. Is it possible to generate field names with variables and then use the generated name to access the actual field by that name?