Editing Errors in Generated Code
The 4GL code that Vision generates for an application generally does not contain any syntax or other errors. However, when you compile or test an application, Vision detects errors in the code if you:
• Specify an invalid expression in a default value or assigned value on an Append frame or a query restriction on an Update or Browse frame
• Write escape code that contains errors
Vision does not check your escape code for errors until it compiles it with the code that it generates for the frame.
• Specify any parameters or local variables incorrectly
If Vision finds any errors in the code it generates for a frame, it marks the frame with the "Error" indicator in the application flow diagram. This indicator remains until you correct the code and recompile the frame.
In addition, Vision generates a listing file that contains all errors for each frame you have compiled. Errors remain in this listing file until you correct them and recompile the code.
Use the Vision error handler described below to identify and correct any errors in your Vision generated source code. You can call the error handler at any time after the error occurs.
Edit the source code files directly. However, it is more convenient to use the error handler facility to track and fix your errors, because the error handler shows you the specific location of the error.
Last modified date: 08/28/2024