Form.RUNMODAL parameters

axasimaxasim Member Posts: 2
As I have noticed in many codeunits, there is a codeline like the following one:
FORM.RUNMODAL(0, RecVariable) (i.e. Codeunit 230, Procedure: Template Selection)
If I am right, and according to the specification, the first parameter of the RUNMODAL command is a FormID.
What Form has FormID zero? Or is this a special-meaning case?
Please help,
Xenia

Comments

  • jmjm Member Posts: 156
    Hi,

    please try the help:

    FORM.RUNMODAL
    Use this function to create, run, and close a form object, which you specify. The system runs the form modally. If, at design time, you do not know the specific form you want to run, use this function or the FORM.RUN function. If you do know the specific form you want to run, you can use the f.RUN or f.RUNMODAL function to specify a variable.

    [Action] := FORM.RUNMODAL(Number [, Record] [, Field])
    Action

    ...

    Number

    Data type: integer

    A number which identifies a form object. If you enter zero (0), the system displays the default lookup window for the current form. You can use the Symbols option on the View menu to choose from a list.

    If the form you specify does not exist, a run-time error occurs.

    ...

    br
    Josef Metz
    br
    Josef Metz
Sign In or Register to comment.