PermaLink Is this a compiler bug in Lotus Notes 6?05/28/2004 06:56 PM

I came along a very strange problem with the Lotus Notes 6 compiler today. Just to save time I tried to use 1024 * 1024 instead of 1048576. The Lotus Notes Designer Client refused to save this with error "overflow". When using a variable containing 1024 instead of using the number itself there seems to be no problem. Weird!

Sub Click(Source As Button)
        Dim number As Double
        Dim a As Double
        a = 1024
' just to proof that Long is big enough
        number = 1048576
'next line will work fine
        number = a * 1024
' this would not work, why??
' number = 1024 * 1024        
        Print number
End Sub



This page has been accessed 171 times. .
Disclaimer
The weblog represent my personal views and comments and does not represent the views of my current or previous employers or customers.
About me
By Category
The BlogRoll
XING advertisement
Proudly Employed By
IBM Lotus Logo
Buy this book
Search
Monthly Archive
2012
2011
2010
2010
2010
2010
2009
2009
2009
2009
2009
2009
2009
2009
2008
2008
2008
2008
2008
2008
2008
2007
2007
2007
2007
2007
2007
2007
2007
2007
2007
2006
2006
2006
2006
2006
2006
2006
2006
2006
2006
2006
2006
2005
2005
2005
2005
2005
2005
2005
2005
2005
2005
2005
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2003
2003
Full Archive
Todays Referrers
Advertisement