P
Patrick
Hi,
This is actually a VB 6.0 query, not VB.NET. I posted it in VB NG but did not get a reply..hopefully I will get some help out here..
-------------
Whenever i test the follwing, an Overflow error -6 occurs
sun test()
dim L as long
dim D as double
dim result as double
L=12112 'any value
D=2^31
result= L and D
result= L or D
result= L or(not D)
end sub
It seems that the bitwise operator "or,Xor,And,Not" may not work on 32bit number with signbit? Please give some solution.
This is actually a VB 6.0 query, not VB.NET. I posted it in VB NG but did not get a reply..hopefully I will get some help out here..
-------------
Whenever i test the follwing, an Overflow error -6 occurs
sun test()
dim L as long
dim D as double
dim result as double
L=12112 'any value
D=2^31
result= L and D
result= L or D
result= L or(not D)
end sub
It seems that the bitwise operator "or,Xor,And,Not" may not work on 32bit number with signbit? Please give some solution.