Is it possible to make a function which creates Objects of Class, which name is defined as string?
function CreateObject(_classname:string):TObject;
If don't than may be it's possible using TClass as function parameter?
It doesn't work in this form ("Exception: Invalid Type Cast"),
but shows a concept to understand.
function CreateObject(_class:TClass):TObject;
begin
Result:=_class.Create();
end;
I would be satisfied with a solution for second variant.