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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top