I tried your code below and it worked both ways for me. The only way
CheckFileFirst would be called, would be if DateSwitch was True and
rxCheckListBox6.Checked was False
I notice they are check-listboxes, are you sure you have the syntax correct
Shouldn't it be RxCheckListBox6[2].Checked ?
----- Original Message -----
From: "Alistair George" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 1:12 PM
Subject: [DUG]: coding
> Hi All.
> The following:
> if (DateSwitch) and not (RxCheckListBox6.Checked[2]) then
CheckFileExist(VCLzip1.zipname);
> is not parsed correctly unless it is:
> if (DateSwitch) and (not RxCheckListBox6.Checked[2]) then
CheckFileExist(VCLzip1.zipname);
>
> So does this mean that any boolean thusly declared:
>
> If not _acorrecttest_ then showmessage('Always false');
>
> //above is wrong but
>
> if (not _acorrecttest_) then showmessage('sometimes false');
>
> --------------------------------------------------------------------------
-
> 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/