Re: Opendialog problem



Maarten Wiltink wrote:
"Jim P" <Jim_P@xxxxxxxxxxxxxxxxx> wrote in message
news:JsmdnRrG9vp7wAnYnZ2dnUVZ_rrinZ2d@xxxxxxxxxxxxxx

Gert Baars wrote:

Jim P schreef:


How did you call opendialog?


How should I?


if opendialog.execute = true then


He should not. A Boolean is a Boolean is a Boolean is a Boolean,
no matter *how* often you compare it to True. Zero, one, infinity -
in this case one is a special case of infinity, and both are wrong.
Unfortunately, only one (no pun intended) is physically possible.

'C = True' is spelled 'C'.
'C = False' is spelled 'not C'.

Groetjes,
Maarten Wiltink

Ok. I must be somewhat confused (something I'm COMPLETELY unfamiliar
with).

I always call
if OpenDialog.Execute then

Oh, but that's different than
if OpenDialog.Execute = TRUE then

But they say the same things, right? If the user hit cancel then
execute will return a FALSE which is different than TRUE resulting
in a FALSE statement.

Or are my eyes turning brown?

.



Relevant Pages

  • Re: Opendialog problem
    ... A Boolean is a Boolean is a Boolean is a Boolean, ... no matter *how* often you compare it to True. ... Zero, one, infinity - ... in this case one is a special case of infinity, ...
    (alt.comp.lang.borland-delphi)
  • Re: Question about Delphi versus other languages
    ... "Sven Pran" wrote in message ... > We have had a thread here on why the following program code could ... > their ordinal values, not their boolean values! ... Maarten Wiltink ...
    (comp.lang.pascal.delphi.misc)
  • Re: Opendialog problem
    ... Maarten Wiltink wrote: ... A Boolean is a Boolean is a Boolean is a Boolean, ... no matter how often you compare it to True. ...
    (alt.comp.lang.borland-delphi)
  • Re: boolean field : true false and undetermined?
    ... That is patently untrue. ... The Boolean values are False and True. ... The null pointer does not point to False. ... Maarten Wiltink ...
    (alt.comp.lang.borland-delphi)
  • Re: So whats null then if its not nothing?
    ... >> most people associate the term Boolean with the most simple Boolean ... The mathematical term "Boolean algebra" is NOT limited to the two-valued ... >sensible, for example, in demanding that 'zero times NULL' should be ...
    (comp.databases.theory)