[lazarus] The registry is alive

Jeffrey A. Wormsley daworm at cdc.net
Sat Nov 11 13:52:48 EST 2000


>>   Result := (RegDeleteKey(fRootKey, KeyP) = 0);

>It worked.
>Really which was the "trick"?  ((LongInt) = 0) ?
>I do not know OOP nor Delphi. Days ago I obtained Delphi 5 (Demo) from
>the site of Borland, to learn.

The function result is a boolean, and the expression
(RegDeleteKey(fRootKey, KeyP) = 0) evaluates to a boolean (think along the
lines of IF X = Y THEN...).  The outer parenthesis are not needed, but I
use them for clarity when assigning to a boolean this way.

Jeff.







More information about the Lazarus mailing list