*** Instantiate a modal form oFm = NEWOBJECT( 'modalform', 'formclasses' ) *** Show the form and ensure that it is modal oFm.Show(1) *** When form is 'released' it is actually hidden! *** Access the Modal form's properties directly ThisForm.SomeProperty = oFm.ModalFormProperty *** Release the modal form when done oFm.Release()While for a form that is created from an SCX file, the following code is equivalent:
*** Instantiate the modal form DO FORM modalform NAME oFm LINKED *** When the modal form is "released" it is actually hidden! *** The NAME 'oFm' can now be used to access it directly: ThisForm.SomeProperty = oFm.ModalFormProperty *** Release the modal form when done by releasing the "linked name" RELEASE oFm