- Function ExitAimms([interactive])
With the procedure
ExitAimms you can exit the current AIMMS session
from within a procedure.
ExitAimms( [interactive] ! (optional) 0 or 1 )
- interactive (optional)
This optional argument is still present for compatibility, but does no longer have any effect. You should use MainTermination to specify whether or not AIMMS should display a confirmation dialog box before closing the current project.
MainTerminationwill be executed as normal.
ExitAimms()from within WebUI (for example, as part of an action behind a button widget) is currently not supported and will result in an error. In fact, calling
ExitAimms()only works for the main AIMMS thread itself and not for any of the other AIMMS contexts (of which WebUI is just one example). Exiting only from the underlying AIMMS session itself is not deemed as a proper behavior for an application with Web-based User Interface.