RUN Function (Form)

Microsoft Dynamics Nav 2009

Creates and launches a form that you specify. You can use the CLEAR Function to remove the form. Use this function or the RUNMODAL Function (Form) function if you know at design time the exact form you want to run. Otherwise, use the FORM.RUNMODAL Function (Form) or the FORM.RUN Function (Form).


Form.RUN

Parameters

Form

Type: Form

After you define this variable, you can run the following form functions:

  • SETTABLEVIEW

  • SETRECORD

  • GETRECORD

  • RUN

  • RUNMODAL

The variable is automatically cleared after this function runs.

If the form you specify does not exist, a compile error occurs.

After you define the variable Form1, you can use it before you run the form. If you use the RUNMODAL (form) function, you can use the variable before and after you run the form.

This example shows how to use the RUN function. Assume that the variable Form1 has been defined as Form 1.

Form1.XXX; // any user-defined function
Form1.SETTABLEVIEW(MyRecord);
Form1.SETRECORD(MyRecord);
Form1.RUN;

Community Additions

ADD
Show: