Language basics / Programs |
A program consists of one or several modules. A module can import other modules with the IMPORT FGL instruction. A module can define functions, reports, module variables, constants and types, as well as declarative dialogs.
[ compiler-options | import-statement [...] | schema-statement | globals-inclusion | constant-definition [...] | user-type-definition [...] | variable-definition [...] ] [ MAIN-block ] [ declared-dialog-block | function-declaration | report-declaration [...] ] ]
OPTIONS SHORT CIRCUIT IMPORT FGL cust_data SCHEMA stores PRIVATE CONSTANT c_title = "Customer data form" PUBLIC TYPE t_cust RECORD LIKE customer.* PRIVATE DEFINE cust_arr DYNAMIC ARRAY OF t_cust MAIN ... END MAIN DIALOG cust_dlg() INPUT BY NAME cust_rec.* ... END INPUT END DIALOG FUNCTION cust_display() ... END FUNCTION FUNCTION cust_input() ... END FUNCTION REPORT cust_rep(row) ... END REPORT