Let's say I have a record:
TRecord = record
variable1: Integer;
variable2: Integer;
end;
and a string:
aString: String = 'variable1';
Is it possible to access variable1 of TRecord using the string with its name, aString?
for example, something along these lines...
var
aRecord: TRecord;
begin
aRecord.aString := 10;
end;
Thanks, Pat.
TRecord = record
variable1: Integer;
variable2: Integer;
end;
and a string:
aString: String = 'variable1';
Is it possible to access variable1 of TRecord using the string with its name, aString?
for example, something along these lines...
var
aRecord: TRecord;
begin
aRecord.aString := 10;
end;
Thanks, Pat.