[lazarus] The registry is alive
Luis R. Hilario B.
luis at luis-digital.8m.com
Sat Nov 11 15:00:12 EST 2000
"Jeffrey A. Wormsley" wrote:
>
> >> 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.
>
In other words:
If the result of the function is equal to 0 then true otherwise false,
but that easy! :-D
is function = 0?
Thanks to teach and excuses to me all (by the idiot questions).
--
|--------------------------|
| Luis R. Hilario |
| http://luisdigital.2y.net |
|--------------------------|
More information about the Lazarus
mailing list