'<emptyconstant>' is not declared
'<emptyconstant>' is not declared. Empty constant is no longer supported; use Nothing instead.
A declaration or assignment statement attempts to assign a value of Empty to a variable, constant, enumeration member, property, or function return.
Previous versions of Visual Basic used the Empty keyword to represent uninitialized data storage. Visual Basic 2008 does not support Empty. An uninitialized variable holds the default value for its data type. For more information about default values, see "Default Values" in Dim Statement (Visual Basic).
The Nothing (Visual Basic) keyword represents the default value of any data type. You can use it instead of Empty.
Error ID: BC30823
To correct this error
Use Nothing instead of Empty.
-or-
Use the default value appropriate for the data type of the programming element.
-or-
If this is a variable declaration, do not assign an initial value. This causes the variable to be initialized to its default value.
See Also
Concepts
Programming Element Support Changes Summary