'<typename>' is a structure type and cannot be used as an expression

A type name occurs where an expression is required. An expression must consist of some combination of variables, constants, literals, properties, and Function procedure calls.

Error ID: BC30110

To correct this error

  • Remove the type name and construct the expression using valid elements.

See Also

Concepts

Operators and Expressions in Visual Basic