Operator without an 'As' clause; type of Object assumed

An operator procedure does not specify an As clause.

An As clause identifies a data type to be associated with a programming element. In an Operator Statement, it specifies the data type of the value the operator procedure returns to the calling code. If you do not include an As clause in the Operator statement, the return data type defaults to Object.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC41005

To correct this error

  • Include an As clause in the Operator statement to specify the return data type.

See Also

Concepts

Operator Procedures

Reference

Operator Statement