How to access a variable by its name(string)?
问题 I have some global string variables. I have to create the function that I could pass & store them in some structure. Later I need to enumerate them and check their values. how can this be easily achieved? (I think I would need some kind of reflection, or store array of pointers). Anyway, any help will be appreciated. Thanks! 回答1: First of all you can't use Delphi's RTTI for that purpose, because Delphi 7's RTTI only covers published members of classes. Even if you were on Delphi XE, there's