Options

Closing a form

abtmnabtmn Member Posts: 27
Is there any way at runtime to tell which forms are running? I want to be able to reference any open form so I can close it (so changing code in the form I want to close is not an option ](*,) )

Comments

  • Options
    Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    There is no standard way of doing this.

    I you want to close a form you have to control it as a variable. You can create a codeunit in which you define a form varable. Then, if you want, you can close it any time you want.

    Sorry :(
  • Options
    kinekine Member Posts: 12,562
    You can only create some external dll which will return this info and will be able to close selected form...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.