do you want a case statement?
somthing like
case MessageDlg('ZIPfile exists. What do you want to do', mtConfirmation,
[mbYes, mbOK, mbCancel], 0) of
mrYes: bla bla bla;
mrOk: bla bla bla;
mrCancel: bla bla bla;
end;
You use 'in' when you want to see if a single instance is a member of a
group.
>
> -----Original Message-----
> From: James Low [mailto:[EMAIL PROTECTED]]
> Sent: 20 December 2002 1:07 pm
> 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/
>
Hey kids! (and parents) - have fun in the trash zone learning to reduce waste
http://www.ecan.govt.nz/Waste/waste-wastenotwantnot.html
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
The contents of this email and any attachments are not formal
policy of Environment Canterbury, unless otherwise stated.
**********************************************************************
---------------------------------------------------------------------------
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/