This is probably a stupid question, but we have been asked about it, and no-one here has a clue!
Lets say a Record is set up:
NRec = record
A : integer;
B : Integer;
C : integer;
end;
NewRec := NRec;
Assuming there are 3 possible conditions that have the same name as the record type fields (ie conditions are A B and C), every time a condition and value is come across the value of the corresponding record field should change to reflect that value (ie. if value is 5 and condition is B then NewRec.B should be set to 5 etc.)
The question is: How can one identify which field in the record to change?
If it was a Paradox table then "fieldByName('B').asInteger := 5" could be used.
Lets say a Record is set up:
NRec = record
A : integer;
B : Integer;
C : integer;
end;
NewRec := NRec;
Assuming there are 3 possible conditions that have the same name as the record type fields (ie conditions are A B and C), every time a condition and value is come across the value of the corresponding record field should change to reflect that value (ie. if value is 5 and condition is B then NewRec.B should be set to 5 etc.)
The question is: How can one identify which field in the record to change?
If it was a Paradox table then "fieldByName('B').asInteger := 5" could be used.