Informix Error -1133
-1133 The NEXT OPTION name is not in the menu.
This MENU statement contains a NEXT OPTION clause that names a menu-option that is not defined in the statement. The string that follows NEXT OPTION must be identical to one that follows a COMMAND clause in the same MENU statement. Review the statement to ensure that these clauses agree with each other.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1133 fires when a MENU statement's NEXT OPTION clause references an option name that isn't
defined within that same MENU statement — per the official guidance, the name after NEXT OPTION must exactly match a name that follows a COMMAND clause in the identical statement.
- A
NEXT OPTIONclause naming an option that was never declared withCOMMANDin this sameMENUstatement, per the official guidance — the direct, only cause. - A misspelling between the
COMMAND-declared option name and theNEXT OPTIONreference to it.
Solutions / Resolution
- Verify all referenced option names are consistently spelled and properly declared, per
the official guidance — every
NEXT OPTIONtarget needs a matchingCOMMANDclause in the sameMENUstatement.
Examples
A NEXT OPTION referencing an undeclared option
MENU "Orders"
COMMAND "View" "View an order"
...
COMMAND "Edit" "Edit an order"
NEXT OPTION "Update"
...
END MENU
-- -1133: no COMMAND "Update" exists in this MENU statement
Corrected
MENU "Orders"
COMMAND "View" "View an order"
...
COMMAND "Edit" "Edit an order"
NEXT OPTION "View"
...
END MENU
Diagnostic Checks
- List every
COMMAND-declared option name in theMENUstatement, and check eachNEXT OPTIONclause's target against that list.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1133 in this set yet.
NEXT OPTION must name an option declared via COMMAND in the same MENU statement — check
spelling and declaration.