Informix Error -2840: The label tag was not defined in the form.
Cause and resolution
The label tag was not defined in the form.
The indicated name appears at the left of this ATTRIBUTES statement, but it does not appear within brackets in the SCREEN section. Review the field tags that have been defined to see why this one was omitted.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2840 fires when an ATTRIBUTES statement's tag doesn't appear inside brackets anywhere in the
SCREEN section — per the official guidance, every tag used on the left side of an
ATTRIBUTES statement must first appear as a bracketed label in SCREEN.
- A tag used in
ATTRIBUTESthat was never placed in brackets in theSCREENsection, per the official guidance — the direct, only cause, often from a typo or an omittedSCREENentry.
Solutions / Resolution
- Review the field tags defined in the form to identify why the referenced tag was omitted
from the
SCREENsection, per the official guidance, and add it there.
Examples
A tag missing from SCREEN
SCREEN
{
[f000]
}
ATTRIBUTES
f001 = order_id;
-- -2840: f001 was never placed in brackets in the SCREEN section
Corrected
SCREEN
{
[f000][f001]
}
ATTRIBUTES
f001 = order_id;
Diagnostic Checks
- Check every tag used on the left of an
ATTRIBUTESstatement against the bracketed labels actually present inSCREEN.
Related Errors / Related Topics
- -2820 — "The label name between brackets is incorrectly given or the label is missing." A
related
SCREEN-section error, about a malformed bracketed label rather than one missing entirely.
An ATTRIBUTES tag was never placed in brackets in SCREEN — add it there.