Delphi 7 tguid compare

Is there any other way to compare 2 TGUID elements besides converting them into strings (guidtostring function) and after evaluating the expression in Delphi 7?

+7
guid compare delphi delphi-7
source share
2 answers

You can use the IsEqualGUID API declared in SysUtils .

+21
source share

IsEqualGUID () (or IsEqualIID ()), as Tondrey suggested. You can also use SysUtuils. CompareMem () instead, since TGuid is a binary byte array.

+4
source share

All Articles