Validate Syntax Utility
To check the syntax of the current PeopleCode program and format it if it is syntactically correct, do one of the following:
-
Click the Validate Syntax button on the Application Designer toolbar.
-
Within Application Designer, select Tools, Validate Syntax.
-
Right-click in the PeopleCode Editor window, then select Validate Syntax.
The Validate utility has several functions, such as finding undeclared variables, mismatching data types, or invalid methods or properties for a class. You can check either a single component or an entire project.
Errors or warnings produced by the Validate utility are displayed in the Validate tab at the bottom of the PeopleCode Editor window.
Any variables that you don't declare are automatically declared for you, and a warning message appears in the Validate tab for each undeclared variable. You can right-click in the Validate tab and select Clear to delete all the warnings listed there, then use the Validate utility again to ensure that your code runs without errors or warnings.
Note:
This feature is convenient if you have written multiple PeopleCode programs and you want to check the syntax of one without saving. All PeopleCode programs associated with an item (record, component, and so on) are checked prior to saving.