CurrentDocument() Method
- Last UpdatedNov 14, 2022
- 1 minute read
This method returns the current Document of the application framework as a FORM object. If there is no current document then the returned form has value Unset.
It has the following declaration:
!!FMSYS.currentDocument( ) is FORM
This method should be useful when constructing callbacks for menus or gadgets which are not on the current document form, i.e. where the context is not the current form or view gadget, for example, callbacks from the Main menu system or from pullright menus on Addin forms.
!myDocument = !!FMSYS.currentDocument()