Writing Escape Code
Writing escape code is a way to incorporate 4GL statements into your application. You can add escape code to various places in your application. The 4GL statements that you write are included as written into the 4GL code that Vision generates for the code. For example, Menu-Start escape code is added to the source code file after the menu item but before the generated code for that menu item.
Note: We recommend that you use escape code rather than editing the source code directly. By using escape code, you can still take advantage of the Vision code generator for incorporating changes to your forms, templates, visual queries, and so forth, without overwriting your customizations.
For example, if you want to change the menu items of a menu, you can accomplish this without editing the code directly in the source code file. Instead, write your menu item code as Menu-Start escape code. Include a resume statement to skip the Vision-generated menu choices. Because your menu item code is stored as escape code, you do not need to reapply the changes to each menu item if you change the visual query and need to regenerate the source code.
For more information on using escape code, see
Using Vision Advanced Features.
Last modified date: 08/14/2024