Conversion from '<type1>' to '<type2>' cannot occur in a constant expression
The initialization expression in a Const statement evaluates to a data type that cannot be converted to the declared type of the constant.
Error ID: BC30060
To correct this error
- Initialize the constant with an expression of a data type that can be converted to the type declared for the constant.
See Also
Reference
Const Statement (Visual Basic)