ui.Window.getForm

Get the current form of a window.

Syntax

getForm()
  RETURNS ui.Form

Usage

The getForm() method returns the ui.Form object corresponding to the current form used by the window object.

Declare a variable of type ui.Form to hold the form object reference.

Consider using the ui.Dialog.getForm() method to get the form used by the current dialog.

Example

DEFINE f ui.Form
OPEN WINDOW w1 WITH FORM "custform"
LET w = ui.Window.getCurrent()
LET f = w.getForm()
...
For a complete example, see Example 2: Get a the current form and hide a groupbox.