[lazarus] The registry is alive

Jeff Wormsley daworm at cdc.net
Fri Nov 10 13:21:44 EST 2000


On 11/10/2000 at 11:38 AM Luis R. Hilario B. wrote:

>{$IFDEF WIN32}
>  Val  := RegDeleteKey(fRootKey, KeyP);
>{$ELSE}
>  Val := 1;
>  //  Val := XMLRegDeleteKey(fRootKey, KeyP); ???
>{$ENDIF}
>  If Val = 0 Then Result := True else Result := False;

Does anyone else use this form below?

{$IFDEF WIN32}
  Result := (RegDeleteKey(fRootKey, KeyP) = 0);
{$ELSE}
  Result := False;
  //  Result := (XMLRegDeleteKey(fRootKey, KeyP) = 0); ???
{$ENDIF}

I find that eliminating the intermediates is somehow "cleaner".

Sorry not to comment on the issue at hand, however...

Jeff.







More information about the Lazarus mailing list