To switch to the logic view within a data entry or batch application you can either:
- press the
icon, or - from the View menu select "Logic", or
- press Ctrl+L
To return to the forms view, you can either:
- press the
icon, or - from the View menu select "Form", or
- press Ctrl+M
From the Logic Window you can create or modify procedures that add logic to your application. The view is divided into two areas:
Upper view: This is the text editor, where you write the logic statements.
Bottom view: Contains two tabs, Compiler Output and Message. The Compiler Output tab displays compiler results of your program. If there are errors in your logic, the compiler will display the error messages here; otherwise, it will display "Compile Successful". The Message tab is where you create user-defined messages to be displayed during, or at the completion of, the execution of your application.
Click on any element of the
Forms Tree or
Batch Edit Tree to see the logic which corresponds to that symbol. For example, if you click on a field, you see the logic for only that field. A group or level can also have logic associated with it. Click on the forms file node (usually the topmost node on form tree) to see the logic for the whole application. This is the way to see and enter logic for the
global procedures.