I would like to make a function semi-generic by passing it a string and using that string as part of variable and array names. The variables and arrays would all be predeclared. But I can't find a way to turn the string into a variable name.

Thanks, D

There might be a better way, but I use get() and set(), which require string names for variables.

4 months later

Can you please give me some short example code? i don't get it work. thank you!

6 years later