AVCLOSEFORM Function
Signals to the Framework to close the current form.
Syntax
AVCLOSEFORM()
Parameters
None
Return Value
None
Remarks
If a RAMP screen is running as a separate form, and needs to be closed automatically after completing, use AVCLOSEFORM.
Ensure that the current form is a form known to the Visual LANSA Framework, at the point the AVCLOSEFORM is issued, and that there is a valid vHandle_NAVIGATETO function for this Junction or Destination. This will allow the Framework to navigate back to sign off and end the session cleanly.
This request may be handled asynchronously. The consequences of invoking it may not be visible or useable until your currently active RAMP-TS script(s) complete executing and yields control back to the RAMP-TS manager.
Example
/* Close this command handler, since the Delete is now done */
/* We should ensure we are on a Junction or Destination at this point */
/* so that the Framework can cleanly navigate the session to sign off */
AVCLOSEFORM();