ui.Window.SetText()

The SetText() method is used to specify the window title. It requires a single argument of the character data type which is represents the new title does not return anything.

CALL wo.SetText("My Window")

 

Here is an example of a ui.Window object manipulation: a window is got by name and its title is changed:

 

 MAIN

    DEFINE wo ui.Window

    OPEN WINDOW orders_w WITH FORM "orders" ATTRIBUTE(BORDER)

    LET wo = ui.Window.forName("orders_w")

    CALL wo.setText("Order list")

    MENU "mmenu"

       COMMAND "Back" EXIT MENU

    END MENU

    CLOSE WINDOW orders_w

 END MAIN