[DUG] Count

Conor Boyd Conor.Boyd at trimble.co.nz
Thu Jan 24 13:50:55 NZDT 2008


For a start, you'll need to bracket your conditions. i.e.

	if (x=0) and (y=0) then

Not sure what you mean by design time vs run-time.

HTH,

C.

-----Original Message-----
From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Bob Pawley

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???



More information about the Delphi mailing list