[DUG] Count

Alister Christie alister at salespartner.co.nz
Thu Jan 24 13:54:00 NZDT 2008


normally you would use
if (x=0) and (y=0) then
You need to use the brackets because "and" binds more tightly than "=".

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 



Bob Pawley wrote:
> Hi
>
> I have two variables x and y that are sums of column rows.
>
> I am attempting to drive a command depending on the number returned be 
> each variable. For instance:
>
>    if x = 0 then if y = 1 then ;
>     CurrDeviceSelection :=  CurrOptionList.items[0];
>
> Delphi doesn't like a " if x=0 and y=0 then" at deign time but it also 
> doesn't like the above any better at run time.
>
> Is there a better expression that I can use to compare two variables???
>
> Bob
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz 
> with Subject: unsubscribe
>
>


More information about the Delphi mailing list