.. _Declare Enum Constant:

Declare Enum Constant
=====================

An error is triggered when using a non-existing enumerated type constant. DVT provides an easy way to declare the missing constant.

.. figure:: ../../images/common/e_quick_fix_extend_type_list.png
	:align: center




Place the editor cursor on the error's line and press :kbd:`Ctrl+1`, select **Declare enumerated type constant ...** from the list of quick fix proposals and press :kbd:`Enter`.

.. figure:: ../../images/common/e_quick_fix_extend_type_after.png
	:align: center




