Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

'<typename>' is a 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: BC30108

To correct this error

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft