Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Basic
 Operator '<operator>' must have a s...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Basic Reference: Error Messages
Operator '<operator>' must have a second parameter of type 'Integer'

A bit-shift operator is declared with the second parameter of a type other than Integer.

When you use the right shift (>>) or left shift (<<) operator in an expression, you specify the shift amount in the second operand. For this operand, Visual Basic allows you to supply any data type that widens to Integer. However, the definition of the second operand is strictly Integer. If you define a class or structure with a bit-shift operator on that class or structure, your definition must specify Integer for the second operand.

Error ID: BC33041

To correct this error

  • Change the definition of the bit-shift operator to return an Integer value.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker