Re: Opendialog problem



Rudy Velthuis wrote:
Jim P wrote:


if opendialog.execute = true then


Why would you do:

if mybooleanexpression = true then

It suffices (and is much safer) if one does:

if mybooleanexpression then



I do this to make sure that the test is shown - no assumptions
in the results - - - I know it is extra but to me make the code a bit cleaner to read and understand.

This was ment as a help on how to call opendialog and check the result.
I hope the poster did not get confused by all of the responses about the extra '= true'

Jim P.
.



Relevant Pages

  • Re: Opendialog problem
    ... It suffices (and is much safer) if one does: ... if mybooleanexpression then ... sometimes see it when API functions are declared as returning a boolean ...
    (alt.comp.lang.borland-delphi)
  • Re: Opendialog problem
    ... It suffices (and is much safer) if one does: ... if mybooleanexpression then ... newsgroups if possible). ...
    (alt.comp.lang.borland-delphi)
  • Re: Opendialog problem
    ... Jim P wrote: ... It suffices (and is much safer) if one does: ... if mybooleanexpression then ...
    (alt.comp.lang.borland-delphi)