Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 819 Bytes

assignment-to-constant-not-permitted.md

File metadata and controls

18 lines (11 loc) · 819 Bytes
title ms.assetid ms.date ms.localizationpriority
Assignment to constant not permitted
9fb23a16-79b2-4862-b31f-4c31ca2a29a1
06/08/2017
medium

Assignment to constant not permitted

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).

[!includeSupport and feedback]