I'm wondering if this is possible. I want to get the TypeInfo
, passing the type's name as a string.
Something like this:
type
TSomeValues = record
ValueOne: Integer;
ValueTwo: string;
end;
function ReturnTypeInfo(aTypeName: string): TypeInfo;
begin
// that's is the issue
end;
procedure Button1Click(Sender: TObject);
var
_TypeInfo: TypeInfo;
begin
_TypeInfo := ReturnTypeInfo('TSomeValues');
end;