So here's a puzzler (to me, anyway):
I have a database full of electronic instrument names. One of the fields in that database contains a string name for the instrument, such as "HP3437A_ID" (using quotes to refer to a string name). I need to take that same name and convert it to a numeric variable name with exactly the same name (HP3437A_ID -- not a string anymore, hence no quotes around it) to which will be assigned a numeric (long data type) value during the program -- so that when I refer to HP3437A_ID, the numeric value assigned to that non-string variable name is invoked.
IOW -- converting a text name to a numeric variable name of exactly the same name on the fly.
Not sure how to do this, or if it can even be done. If it can be done, I'm sure it's embarrassingly simple to do -- with all the time I've put into trying to figure it out, I still haven't been able to make it work.
Am I barking up a non-existent tree here? Or have I just gotten so paradigm-locked that I can't think outside of my own box?
I have a database full of electronic instrument names. One of the fields in that database contains a string name for the instrument, such as "HP3437A_ID" (using quotes to refer to a string name). I need to take that same name and convert it to a numeric variable name with exactly the same name (HP3437A_ID -- not a string anymore, hence no quotes around it) to which will be assigned a numeric (long data type) value during the program -- so that when I refer to HP3437A_ID, the numeric value assigned to that non-string variable name is invoked.
IOW -- converting a text name to a numeric variable name of exactly the same name on the fly.
Not sure how to do this, or if it can even be done. If it can be done, I'm sure it's embarrassingly simple to do -- with all the time I've put into trying to figure it out, I still haven't been able to make it work.
Am I barking up a non-existent tree here? Or have I just gotten so paradigm-locked that I can't think outside of my own box?