Given a Record:
MyRecord = record
Company: string;
Address: string;
NumberOfEmplyees: integer;
can you write a function call like
function UpdateField(var FieldName: string; FieldValue: variant): bool;
so that:
UpdateField('Company', 'ABC Co');
would update MyRecord.Company to 'ABC Co'?
I looked for an example but everything I found is for a database. Any help pointing me in the right direction is appreciated.
Thanks, Charles