<HTML>
<font style="font-family: tahoma; font-size: 10pt;"><div>SORT of along these
lines, the other day I was altering a function in a Kylix app that i have
written.</div><div>Well, I am using CrossKylix, but I think this is still
usign the Kylix compiler.</div><div> </div><div>Anyway, I was going
:-</div><div> </div><div>var</div><div> iVersion : double;</div>
<div>begin</div><div> if iVersion >= 1.4 then</div><div>
blah</div><div> else</div><div>
blah blah;<br></div><div>end;<br> </div><div>Ok, thats fine,
EXCEPT "iVersion >=1.4" was never true when iVersion was 1.5
!!</div><div>In the end, I had to define another variable which was also a
double (single and real had no affect either) then assigne 1.4 ti the new
variable, THEN when I did iVersion >= iNewVar it worked.</div><div>Thats
GOT to be a compiler issue. It def. compiles in the code example above, it
just didnt evaluate properly....weired....and quite frustrating !</div><div>
</div><div>Jeremy<br></div>
<p style="font-family: tahoma; font-size: 10pt;"> </div></font>
<br><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right:
0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
-----Original Message-----<br>
From: Nick <nick@salehoo.com><br>
To: NZ Borland Developers Group - Delphi List
<delphi@listserver.123.net.nz><br>
Date: Thu, 24 Jan 2008 13:30:09 +1300<br>
Subject: Re: [DUG] Count<br>
<br>
<div style="font-family: monospace,courier new,courier;">
If (x = 0) and (y=1) then<br>
<br>
?<br>
<br>
<br>
Bob Pawley wrote:<br>
> Hi<br>
><br>
> I have two variables x and y that are sums of column rows.<br>
><br>
> I am attempting to drive a command depending on the number returned be
<br>
> each variable. For instance:<br>
><br>
> if x = 0 then if y = 1 then ;<br>
> CurrDeviceSelection := CurrOptionList.items[0];<br>
><br>
> Delphi doesn't like a " if x=0 and y=0 then" at deign time but it also
<br>
> doesn't like the above any better at run time.<br>
><br>
> Is there a better expression that I can use to compare two
variables???<br>
><br>
> Bob<br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: delphi@listserver.123.net.nz<br>
> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to delphi-request@listserver.123.net.nz <br>
> with Subject: unsubscribe<br>
><br>
><br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: delphi@listserver.123.net.nz<br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to delphi-request@listserver.123.net.nz with
Subject: unsubscribe<br>
</div>
</blockquote>
</HTML>