ui.Window.getForm

Get the current form of a window.

Syntax

getForm()
  RETURNING result 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.

DEFINE f ui.Form
OPEN WINDOW w1 WITH FORM "custform"
LET w = ui.Window.getCurrent()
LET f = w.getForm()