Just wondering what >> means?
Printable View
Just wondering what >> means?
Hi MrPolite.
This is from MSDN.
So "A = B >> 3" would shift all bits in B 3 places to the right and put the result in A.Quote:
Right shifts the bits of an expression, maintaining sign.
result = expression1 >> expression2
But apparently this is not available in VB.
MSDN is wrong then cuz it works:rolleyes: funny heheQuote:
Originally posted by pax
Hi MrPolite.
This is from MSDN.
So "A = B >> 3" would shift all bits in B 3 places to the right and put the result in A.
But apparently this is not available in VB.
I guess I have to learn assembly to get a better understanding of all these byte shifts blah blah, even though they may be simple:(
It works in VB ?:confused:
How did you do that?
I have just tried this :
VB Code:
Dim A As Integer A = &H10 MsgBox(Hex(A)) A = A >> 3 MsgBox(Hex(A))
And I get a compile error on the >>
Its now available in VS2003 but not in VS2002.
Ah, that explains it all...
Thank's for the info, Grimfort
heh interesting. Is there anywhere which lists all the LANGUAGE changes in VS.NET 2003? :rolleyes: