under what circumstances i can run modally

shafeaa
shafeaa Member Posts: 54
hi
under what circumstances i can run modly if the Report in run time?

ithink its corresponding to request form but i dont know how.

Comments

  • Sbhat
    Sbhat Member Posts: 301
    Normally RUNMODAL is useful in FORMS and Reports.

    In Forms you use it when you want to accept a value from a form. For example

    IF Form.runmodal(Form::<FormName>,Rec) = Action::LookupOk then
    <field> := Rec.<Field Value>

    In Report you use it when you want to run a report using a printer selection or directing a report to a specific devic.

    Before using a Runmodal you must use the COMMIT syntax, otherwise you cannot run the form or report in Run modal.

    SB.
  • lubost
    lubost Member Posts: 633
    It's true. The second difference is: When you run object modally, your code will wait for closing called object, but nonmodal calling calls the object and your code will continue on next line.