"in" is a membership operator. It is a binary operator that tests if a given
ordinal is in a given set -- it yields a Boolean result. Basically it is
used to answer the question "is x IN the set of y?"

For more information about sets, see the Delphi Help on the following
topics:

-Sets
-Set constructors
-Set operators

For your information, sets is a very powerful language feature, but sadly
not many other languages, besides Pascal, implement them.


-Andreas

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of James Low
Sent: Friday, 20 December 2002 13:07
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Conditional statement


The button clicked is always going to be IN [mbYes, mbOK, mbCancel]. What
you are asking in your example is:

If the user clicked a button that is either (ie IN) Yes, OK, Cancel then ...

You should probably be testing if they clcked Yes, or OK only (IN [mrYes,
mrOk]).

So, from you example, just change the set to [mrYes, mrOk] and you'll
probably be right. IN is the same as 'Is a member of the set' ... the set
being the thing in the square brackets.

Regards

James

-----Original Message-----
From: Alistair George [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 December 2002 12:14 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Conditional statement


Hi - is anyone still here??

I have a conditonal I have never used before. Please fill in the blank
following
lines as I cannot find any reference to using this IN

if MessageDlg('ZIPfile exists. What do you want to do', mtConfirmation,
[mbYes, mbOK, mbCancel], 0)
 in [mrYes, mrOk, mrCancel] // WHAT FOLLOWS HERE? how to use the WORD
results
example please.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
Notice of Legal Status and Confidential Information: This electronic mail
message and any accompanying attachments may contain information that is
privileged and CONFIDENTIAL.  If you are not the intended recipient you are
advised that any use, review, dissemination, distribution or reproduction of
the information is strictly prohibited and may be unlawful.  If you have
received this document in error, please notify the sender immediately and
destroy the message.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to