Windows Component

Fnd_Wnd_OpenFormWindow

Fnd_Wnd_OpenFormWindow (->table; form name) -> Number

Legacy manual page 264

Parameters

ParameterTypeDescription
tablePointerPointer to the form’s table
form nameTextName of the form
Function resultNumberThe new window’s reference number

Description

Pass this method a pointer to a table and a form name from that table, and it will open a new window using the specified form’s width and height. You can use other Windows component routines to set the window’s type, title, and close box before calling this routine. Unless the new window uses a previously saved position (see the Fnd_Wnd_UseSavedPosition method), the new window will use the position set by the Fnd_Wnd_Position method.

Fnd_Wnd_Title ("New Invoice for "+[Customers]Name)
Fnd_Wnd_Type (Movable form dialog box )
Fnd_Wnd_Position (Fnd_Wnd_CenterOnWindow )
Fnd_Wnd_OpenFormWindow (->[Invoices];"Invoice")
DIALOG([Invoices];"Invoice")

CLOSE WINDOW

If you do not need the new window’s reference number you can safely call this method as a command, rather than as a function.

Extracted source text
            Fnd_Wnd_OpenFormWindow (->table; form name) ➜ Number

              Parameter               Type              Description
              table                   Pointer           Pointer to the form’s table
              form name               Text              Name of the form
              Function result         Number            The new window’s reference number

            Pass this method a pointer to a table and a form name from that table, and it will open a new window
            using the specified form’s width and height. You can use other Windows component routines to set the
            window’s type, title, and close box before calling this routine. Unless the new window uses a previously
            saved position (see the Fnd_Wnd_UseSavedPosition method), the new window will use the position
            set by the Fnd_Wnd_Position method.
              Fnd_Wnd_Title ("New Invoice for "+[Customers]Name)
              Fnd_Wnd_Type (Movable form dialog box )
              Fnd_Wnd_Position (Fnd_Wnd_CenterOnWindow )
              Fnd_Wnd_OpenFormWindow (->[Invoices];"Invoice")
              DIALOG([Invoices];"Invoice")
              CLOSE WINDOW

            If you do not need the new window’s reference number you can safely call this method as a command,
            rather than as a function.