Editing the Source Code to Create a Custom Frame
You can edit the 4GL code that Vision generates for Menu, Append, Browse and Update frames. However, if you edit the source code directly, Vision marks the frame as a Custom frame.
For a Custom frame, Vision does not regenerate the code when you modify the visual query for the frame and select Go. You must select the Compile operation in the Application Flow Diagram Editor to force code regeneration. When you select Compile for a Custom frame, Vision warns you that compiling the frame overwrites any changes that you have made to the source code. You can continue with the compile and overwrite your source code changes, or you can keep your changes. To protect your edits, save the source code to a new file before selecting Compile, and reapply your edits after regenerating the code.
Vision marks a frame as "Custom" in the application flow diagram whenever the date of the frame's source code file is more recent than the last time the frame's source code was generated. Be aware that the file's date can change if:
• You edit the file and save your changes.
• You save the file before you leave the editor, even if you have not made any changes.
• VMS: You exit (rather than quit) from the file, even if you have not made any changes.
• Certain operating system-level changes occur; for example:
– UNIX: You run the touch command on the file.
– VMS: You assign a new owner to the file.
Last modified date: 01/30/2023