Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 7 tguid compare

Is any other way to compare 2 TGUID elements, except transform them into strings (the guidtostring function) and after evaluate the expression, in Delphi 7?

like image 399
RBA Avatar asked Oct 25 '10 07:10

RBA


2 Answers

You can use IsEqualGUID API declared in SysUtils.

like image 129
Ondrej Kelle Avatar answered Nov 09 '22 23:11

Ondrej Kelle


IsEqualGUID() (or IsEqualIID()), like TOndrej suggested. You can also use SysUtuils. CompareMem() instead, since TGuid is a binary array of bytes.

like image 4
Remy Lebeau Avatar answered Nov 09 '22 23:11

Remy Lebeau