Informix Error -4158: IBM Informix FORM and WINDOW statements are not supported in this product. Use the Visual Class Library for screen interaction.
Cause and resolution
IBM Informix FORM and WINDOW statements are not supported in this product. Use the Visual Class Library for screen interaction.
The compiler encountered an OPEN FORM or OPEN WINDOW statement. In NewEra, these functionalities are handled through Visual Class Library objects. Consult the Graphical and Connectivity Reference Manual. Other grammatical errors might be generated in addition to this one. Replacing the offending statements with VCL calls and recompiling should eliminate the additional messages.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4158 fires when the compiler encounters an OPEN FORM or OPEN WINDOW statement — per the
official guidance, NewEra handles screen interaction through Visual Class Library (VCL)
objects instead; additional grammatical errors may follow from the same statement.
- An
OPEN FORMorOPEN WINDOWstatement in NewEra source, per the official guidance — the direct, only cause.
Solutions / Resolution
- Consult the Graphical and Connectivity Reference Manual, per the official guidance.
- Replace the offending statements with Visual Class Library calls, per the official guidance — this should also eliminate any additional cascading error messages.
Examples
A classic 4GL FORM statement in NewEra source
OPEN FORM myform FROM "myform"
DISPLAY FORM myform
-- -4158: NewEra uses VCL, not OPEN FORM/OPEN WINDOW
Corrected
Replace the form-based interaction with the appropriate Visual Class Library object calls per the Graphical and Connectivity Reference Manual.
Diagnostic Checks
- Check the source for any
OPEN FORM/OPEN WINDOWstatement, and replace it with VCL calls.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4158 in this set yet.
OPEN FORM/OPEN WINDOW isn't supported in NewEra — use Visual Class Library objects instead.