Bit Shift Operators

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I've tried using the bit-shift operators (>> and <<) in
VB.Net, but the compiler objects. Does anybody know
why? Has anybody used them?

Thanks in advance
 
Hi,
I've used them without any problems. What says the compiler when he objects
it?
Do you use the right datatypes?
 
Hi,

Thanks for replying.

The development environment underlines the >> in blue and
says "Expression expected". It is version 7 of the
development environment and Visual Basic.Net.
 
Are you using Visual Studio 2003 and the .net Framework version 1.1?

VS2002 and .net 1.0 don't support bit shifting in VB.net.

Hope this helps,

Trev.
 
Back
Top