Technical Capabilities
Having trouble finding what you need?
Get in touch with us, so we can answer your specific questions directly.
Get In Touch

VX/DECFORMS - DECforms IFDL Compiler and FORMS$

VX/DECFORMS: Seamless Migration of DECforms from VMS/OpenVMS to Linux and Windows

VX/DECForms offers a comprehensive implementation of DEC’s OpenVMS DECforms. This solution delivers an exact emulation of DECforms, ensuring that form management and functionality are preserved across platforms. VX/DECFORMS is a library of FORMS$ APIs, mirroring the original DECForms API and maintaining compatibility with OpenVMS systems.

The system compiles IFDL (Interactive Forms Definition Language) into a C++ logic subroutine that mirrors the flow of the original IFDL, with verbs converted into C++ classes. These C++ classes retain the same names and attributes as the original IFDL, ensuring consistency in functionality. The generated C++ code emits ANSI escape codes just like DECforms, providing a 100% functional emulation, where users cannot distinguish between the migrated screen and the original OpenVMS DECforms.

While VX/DECFORMS supports nearly all DECforms syntax, it currently does not support right-to-left text formatting. The platform also allows the display of DECforms in modern HTML5 browsers, broadening access to legacy applications.


Key Features of VX/DECFORMS

Complete Feature Set: VX/DECFORMS retains all features of the original OpenVMS DECforms system, including scrolled areas, named data, overlapping forms, and more.

Full Terminal Support: It is compatible with all VT terminals (VT100 and higher), including DECterm in DECwindows, ensuring broad device support.

Double-Width & Double-Height Characters: Supports advanced display options, such as 132-character mode, help forms, and user-defined routines (UARs).

Emulation of Original DECforms: Focused on a 100% functional migration, VX/DECForms preserves the complex attributes and functionality of DECforms without enhancing or altering the core features.

Seamless Integration with VX/RT: For applications requiring full integration with VMS, VX/DECFORMS works seamlessly with VX/RT, Sector7’s runtime support libraries for Linux.

Feature Description
Scrolled AreasSupports **scrolling form sections** within DECForms layouts.
Named DataRetains **structured field naming and referencing**.
Overlapping FormsAllows **multiple forms to be layered on top of each other**.
132-Character ModeSupports **wide terminal displays**.
Help FormsIntegrates with **VX/DCL to display user help panels**.
User Escape Routines (PUEs)Supports **user-defined event handlers**.

Introduction to VX/DECFORMS

Originally designed for VMS systems, DECforms posed significant challenges for migration due to its complexity, VMS-specific dependencies, and platform-specific programming constructs. Until now, migrating DECforms-based applications to modern platforms has been impractical. VX/DECFORMS eliminates these barriers by offering a comprehensive set of language interface utilities, enabling the migration of DECforms-created forms to Linux environments.

The VX/DECFORMS utilities support multiple programming languages, including Fortran, C, COBOL, and VX/BASIC, and provide the necessary procedures to adapt VMS descriptors and facilitate integration with modern platforms. These system-independent routines enable smooth linking and transition to new environments.

Functionality of VX/DECFORMS

VX/DECFORMS enables developers to leverage many advanced features of DEC’s VT family, such as:

Character Attributes: Including reverse video, bold, blinking, and underlined text.

Line Attributes: Such as double-width and double-height characters, as well as scrolled lines.

Screen-Width Attributes: Supporting both 80-column and 132-column modes, as well as reverse video.

Alternative Character Sets: Full support for VT100 special graphics and line-drawing characters.

The VX/DECFORMS compiler translates ASCII-form descriptions (FLEX files) into an internal binary format, which is then used to display forms and validate user input at runtime. The migration process does not require changes to application programs; once the form descriptions are updated, the application automatically utilizes the new forms through the runtime system.

Form Driver: The Heart of VX/DECFORMS

The Form Driver is the runtime component of VX/DECFORMS responsible for handling terminal input and output, displaying forms, managing screen manipulation, and performing basic input validation. It supports:

Field-based and Full-form Input/Output: Allows specification of inputs one field at a time or across the entire form.

Efficient Terminal Drivers: Built-in C-based terminal drivers provide portability across Linux/Windows platforms without relying on external tools like curses or termcap.

Terminal Compatibility: Fully supports VT100 and higher terminals, including DECterm under DECwindows, and can be extended for non-VTxxx terminals as needed.

This eliminates the need for external terminal configuration files, ensuring high portability and ease of deployment across diverse environments.

User Escapes (PUEs): Custom User Procedures

User Escapes (PUEs) are custom routines written by users in any DEC-supported programming language. These procedures are tied to forms and fields during the creation of form data structures and are triggered automatically by the Form Driver in several scenarios:

• After field processing.

• Before and after help requests.

• When function keys are pressed.

• During screen refresh operations.

PUEs in VX/DECFORMS behave identically to those in the original OpenVMS DECForms, with added flexibility. The IFDL compiler converts the IFDL into maintainable C++ code, allowing for direct linking of external routines into the compiled IFDL, giving you greater control and flexibility over form interactions.

IFDL Forms Compiler: Simplifying the Form Definition Process

IFDL (Interactive Forms Definition Language) is a declarative, keyword-oriented language used to create and modify form source descriptions. The VX/DECFORMS compiler translates these IFDL files into C++ subroutines used at runtime. The system links DECforms Call Outs normally, adhering to standard scoping rules.

This robust compiler allows developers to create, modify, and compile forms efficiently, supporting a modern development environment while preserving the legacy functionality of DECForms.

With VX/DECFORMS, migrating legacy DECforms applications to Linux and Windows has never been easier. Our solution provides a seamless experience that preserves the original functionality, allowing your forms to continue running efficiently and effectively in modern environments.

Frequently Asked Questions

Curious about how Sector7 can facilitate your application migration? Explore our FAQs for expert insights.

What is VX/DECFORMS and how does it help with DECforms migration?

VX/DECFORMS provides a comprehensive implementation of DEC's OpenVMS DECforms, offering exact emulation that preserves form management and functionality across platforms. The solution compiles IFDL (Interactive Forms Definition Language) into C++ logic subroutines that mirror the original IFDL flow, ensuring 100% functional emulation where users cannot distinguish between migrated screens and original OpenVMS DECforms.

This breakthrough technology eliminates the barriers that previously made DECforms migration impractical, enabling organizations to modernize their legacy applications while maintaining complete compatibility. To explore how VX/DECFORMS can transform your migration project, contact our experts.

What terminal types does VX/DECFORMS support?

VX/DECFORMS is compatible with all VT terminals (VT100 and higher), including DECterm in DECwindows, ensuring broad device support across different environments.

How does the IFDL compiler work in VX/DECFORMS?

The IFDL compiler translates Interactive Forms Definition Language files into C++ subroutines, converting IFDL verbs into C++ classes that retain the same names and attributes as the original.

What is the migration workflow for DECforms applications?

The migration process requires no changes to application programs - once form descriptions are updated, applications automatically utilize the new forms through the runtime system.

How does VX/DECFORMS handle complex form features and integration?

VX/DECFORMS retains all advanced features of the original OpenVMS DECforms system, including scrolled areas, named data, overlapping forms, 132-character mode, help forms, and user-defined routines (UARs). The system supports double-width and double-height characters, providing comprehensive display capabilities that match the original functionality.

For applications requiring full VMS integration, VX/DECFORMS works seamlessly with VX/RT, Sector7's runtime support libraries for Linux. Companies like OM Technology have successfully implemented similar comprehensive migration strategies for complex legacy systems.

Does VX/DECFORMS support customization with programming languages?

VX/DECFORMS utilities support multiple programming languages including Fortran, C, COBOL, and VX/BASIC, providing the necessary procedures to adapt VMS descriptors for modern platform integration.

What are User Escapes (PUEs) and how do they work in VX/DECFORMS?

User Escapes (PUEs) are custom routines written in any DEC-supported programming language that are tied to forms and fields during creation. The Form Driver automatically triggers these procedures in several scenarios: after field processing, before and after help requests, when function keys are pressed, and during screen refresh operations.

PUEs in VX/DECFORMS behave identically to those in original OpenVMS DECForms, with added flexibility. The IFDL compiler converts the IFDL into maintainable C++ code, allowing direct linking of external routines into the compiled IFDL for greater control over form interactions.

What benefits and results can organizations expect from VX/DECFORMS migration?

VX/DECFORMS delivers 100% functional emulation with complete preservation of DECforms functionality, ensuring users cannot distinguish between migrated screens and original OpenVMS versions. The solution eliminates vendor lock-in while maintaining all advanced display features including character attributes (reverse video, bold, blinking, underlined text), line attributes (double-width/height characters), and screen-width attributes supporting both 80-column and 132-column modes.

Organizations benefit from seamless migration without application program changes, built-in C-based terminal drivers that provide high portability without external dependencies, and support for VT100 special graphics and line-drawing characters. The Form Driver handles efficient terminal input/output with field-based and full-form capabilities.

Leading organizations like BGC Partners have successfully modernized critical systems using similar comprehensive migration approaches. To discover how VX/DECFORMS can preserve your DECforms investment while enabling platform modernization, contact our migration specialists.

Transform Your Legacy Software Today!

Get In Touch
Unlock the potential of your legacy software with our expert migration services.