Table of contents
TOC
Collapse the table of content
Expand the table of content

Assignment to constant not permitted

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

A constant represents a read-only value. This error has the following causes and solutions:

  • You tried to assign a new value to a variable declared with Const, or to a type library constant. If you need to assign a new value, declare an ordinary variable of the type desired and assign your value to that variable. If you need a variable with a restricted set of values, you can declare an enumeration, using the Enum statement.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft