[DUG] Uninitialised variables/Constants

Paul Lowman paul_lowman at xtra.co.nz
Thu Feb 1 09:13:40 NZDT 2007


I always use FillChar to initialise records and other large data 
structures as it is simpler than setting each field separately.

eg:

var
      R : RaRecord;

begin
      FillChar(RaRecord,Sizeof(RaRecord),0);

   etc ...


FWIW

Paul Lowman
Lowman Consulting Ltd.

paul at lowmanconsulting.com


More information about the Delphi mailing list