Operator '<operator>' must have one parameter

A unary operator is defined with no parameters or with more than one parameter.

A unary operator must have exactly one parameter.

Error ID: BC33014

To correct this error

  • Adjust the definition to specify exactly one parameter.

  • If you need two parameters, you must define a binary operator.

  • If you need no parameters or more than two, you must use the Function Statement (Visual Basic) to define a Function procedure instead of an operator.

See Also

Tasks

How to: Define an Operator

How to: Define a Conversion Operator

Concepts

Operator Procedures

Reference

Operator Statement