Named enumerations
A variable or a method argument datatype can be specified with the following syntax:
Dim Name As Enum EnumerationName
Public Variable As Enum EnumerationName
Public Sub Method(Arg As Enum EnumerationName) As Enum EnumerationName
For the interpreter, there is absolutely no difference with an
Integer declaration.
But as these declarations are exported to the metadata files generated by the compiler, it allows the development environment to provide accurate automatic completion.
See also