ui.Window.setText

Set the window title.

Syntax

setText(
   title STRING )
  1. title is the title of the window.

Usage

The setText() method defines the title of the window.

By default, the title of a window is defined by the TEXT attribute of the LAYOUT definition in form files.

Example

Definiting the title of the current window/form:
MAIN
  OPEN FORM f1 FROM "customer"
  DISPLAY FORM f1
  CALL ui.Window.getCurrent().setText("Customer")
  MENU "Test"
     COMMAND "exit" EXIT MENU
  END MENU
END MAIN

Defining the title of the default SCREEN window when no form was displayed yet:

MAIN
    MENU "My Menu"
        BEFORE MENU
            CALL ui.Window.getCurrent().setText("My window title")
        ON ACTION exit ATTRIBUTES(TEXT="Exit")
            EXIT MENU
    END MENU
END MAIN