All,
I've run into a comparison error with Int64 and UInt64. I'm using
RB2006 on WinXP SP2. I've tried r1, r2 and r3. You can see it if you
create a console app and put this code in the Run handler:
------------------------------------------------------------
Dim a As UInt64
Dim b As UInt64
Dim c As UInt64
Dim d As UInt64
Dim res As Boolean
a = 40000 // 40,000
b = 0
c = a + b
d = 620000000 // 620,000,000
res = (c > d)
Print "Boolean assignment returned " + CStr(res)
If c > d Then
res = True
Else
res = False
End If
Print "If statement returned " + CStr(res)
Print "The End"
------------------------------------------------------------
With the type of a..d set to UInt64 or Int64, the results are "False"
and "True". With Integer or UInt32, the results are "False" and "False".
This would seem to be the same bug mentioned here:
<http://support.realsoftware.com/listarchives/realbasic-nug/2006-01/msg03695.html>.
Bug report xamldlsi claims that this is fixed (without specifying in
which version), but it isn't, at least not as of r3. Does anyone know
which version will contain the fix?
--
Charles Calvert
Celtic Wolf, Inc.
(703) 580-0210
[EMAIL PROTECTED]
http://www.celticwolf.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>