> Try the following function:  (Good fast ASM function that has been around
> for a VERY long time).
> function CompareMem(P1, P2: Pointer; Length: Integer): Boolean;
> Eg.
> if CompareMem (@record1, @record2, sizeof (record1)) then
> This will only work provided the records do not have pointers to data or
> strings.

or have any datatypes which are not word aligned... Note that nonpacked
have padding bytes that are not initialised (or at least I don't believe you
trust them to be initialised)...

Thus byte fields or byte arrays would be out... Comments?


    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to