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/
