JavaScript Editor Ajax toolkit     Ajax website 



Main Page

An enumeration declaration exists in an inappropriate context. Enumeration declarations are allowed only in the main program block, inside classes, inside packages, or in functions.

To correct this error

  • Define the enumeration in the main program block, inside a class, inside a package, or in a function.

See Also

Reference

enum Statement

Concepts

Troubleshooting Your Scripts

Other Resources

JScript Reference



JavaScript Editor Ajax toolkit     Ajax website


©