title: How to finalize record passed through the untyped parameter of a function?
body: <p>Can I pass "any" record type to my procedure ?</p>
  
  <p>Many times I used "records" with strings.</p>
  
  <pre><code>type 
    TR = record
      a: string;
      b: string;
    end;
  </code></pre>
  
  <p>To clear them, I need to write:</p>
  
  <pre><code>Finalize(R);
  FillChar(R, SizeOf(R), #0);
  </code></pre>
  
  <p>The question is that how to I pass any kind of records to clear it ?</p>
  
  <p>For this I got this hint: "Expression needs no initialize/finalize".</p>
  
  <pre><code>procedure ClearRecord(var R);
  begin
    Finalize(R);
    FillChar(R, SizeOf(R), #0);
  end;
  </code></pre>
  
  <p>Thanks for every info!</p>