Can I pass any type of record to my procedure?
Many times I used "records" with strings.
type TR = record a: string; b: string; end;
To clear them I need to write:
Finalize(R); FillChar(R, SizeOf(R),
The question is, how do I transfer any records to clear it?
For this, I received this hint: "The expression does not require initialization / finalization."
procedure ClearRecord(var R); begin Finalize(R); FillChar(R, SizeOf(R), #0); end;
Thanks for every info!
source share