I'm not sure if this is actually possible with RTTI, but I though I would ask.
I have a global unit which just holds a number of var pick lists in the form of TStringList. Via a database record returning a string, can I use RTTI to find the correct string list in the unit by "name" and return it?
function GetStringListFromUnitByName(aUnit, aName: String): TStringList;
begin
end;
Would it help if all the stringlists were stored as public variables in a generic class?
TMyPickLists = class
public
FList1: TStringList;
FList2: TStringList;
end;