12. Working With Classes : How You Can Create User Classes : Create Methods for a User Class : Write 4GL Code for Your Methods
 
Share this page                  
Write 4GL Code for Your Methods
You define all of a user class's methods in a single 4GL script that is part of the user class source object. Any operations that can be performed syntactically in the 4GL code of a frame or procedure can be done in the 4GL code of a user class method, including invoking another of the class's methods.
The methods created in the script must correspond to methods defined for the user class. (For the syntax for method scripts, see the Language Reference Guide).
To write the 4GL code for your methods
Click Tools, Script in the Class Editor.
Workbench opens the Script Editor (or your system editor) for you to write the code for your methods.
You write one script for all the methods of a user class. Writing one such method script is covered in How You Can Use Attributes and Methods (see How You Can Use Attributes and Methods).