The LAYOUT SCREEN definition is used to define a form. This definition is a group of statements that are specified in a Process Module (PM) Declare Section, a Global Storage (GS), or a Code Segment (CS). The syntax and description of the statements in the LAYOUT SCREEN definition are described below.
The form_name in the LAYOUT SCREEN statement identifies the form and is used later in the GENERATE statement/command that creates the form. The naming convention for form_name is the same as that of any other user-defined field. If the layout of the form is defined in GS, the form_name field must follow the naming convention of a GS field and be preceded by a percent sign (%).
The form definition begins with the LAYOUT SCREEN statement and ends with the LAYOUT END statement.
The statements between LAYOUT SCREEN and LAYOUT END must begin with a slash (/). Spaces preceding or following the slash (/) are allowed for readability. Note that a line can contain a slash without a statement to enhance readability.
Comments begin with an exclamation point (!) and are allowed on lines by themselves or at the end of the statements.
Spaces, commas and tabs can be used to separate statement items instead of commas.
The "@SCN_" prefix for screen attributes (renditions) are optional. The attributes may be specified as @NORMAL, @BOLD, @UNDERLINE, @BLINK and @REVERSE. Use of @SCN_ is obsolete but is still recognized by ACCENT R for compatibility.
LAYOUT SCREEN form_name/FILL row column number_of_rows number_of_columns rendition/SELECTION rendition/[PERFORM final_trigger]/[BORDER [rendition text]]/[FUNCTION function_trigger]/[MESSAGE row column rendition text].../[LINE start_row start_column end_row end_column rendition].../[PROMPT row column rendition text].../[RECTANGLE top_left_row top_left_column bottom_right_rowbottom_right_column rendition].../[TITLE row column rendition text].../FIELD row column width rendition field_name display_type/[ID <string>]/[EXIT [BEFORE /AFTER/]]/[PICTURE picture_format]/[DATE FORMAT date_string]/[PERFORM trigger_name [/ALWAYS/ {BEFORE; AFTER}]]/[HELP row column number_of_rows number_of_columns rendition]{/{TEXT text}/[HELP]{/PERFORM help_trigger_name/}LAYOUT END