Informix Error -4044: Member "name" not defined in class "class".
Cause and resolution
Member "name" not defined in class "class".
This statement tries to access class::name. However, no such variable or constant is defined for that class. Check the spelling of the member name and the class or object name. If the reference is class::name, review the declaration of the class for the correct spelling of the member names. If the reference is through an object, make sure that the object is declared as having the class that you intended.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4044 fires when code tries to access class::name but no such variable or constant is
defined for that class — per the official guidance, this can also happen via an object
reference if the object's declared class doesn't have that member.
- A misspelled member or class/object name, per the official guidance — the first named cause.
- An object declared with a different class than intended, per the official guidance — the second named cause.
Solutions / Resolution
- Check the spelling of the member name and the class or object name, per the official guidance.
- For
class::name, review the class declaration for correct member spellings, per the official guidance. - For an object reference, confirm the object is declared with the intended class, per the official guidance.
Examples
Accessing an undefined class member
LET x = Order::statuss
-- -4044: no such variable or constant exists on Order
Corrected
LET x = Order::status
Diagnostic Checks
- Check the spelling of the member and class/object names, and confirm the member is actually declared on that class.
Related Errors / Related Topics
- -4051 — "Member "name" is defined in class "class", but not as a function." A related member-access error, about a member that exists but is the wrong kind (variable instead of function), rather than one that doesn't exist at all.
A referenced class member doesn't exist — check its spelling and the class/object declaration.