Application.exit() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Application Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Application.exit(opt:String="", message:String=""):void

Parameters
opt:String - option: it has to be "ask" string

message:String - Optional message string

Returns
Nothing

Description
Exits the application. The user could be provided with optional dialog to ensure that she/he wants to close application. That dialog is system native but has customizable message text

Notes
This command has 2 optional parameters (Windows only) which can be used if you would prefer to prompt the user prior to closing the application.

Example Code
// Just exits the application:
mdm.Application.exit();

//Exits the application with user confirmation and custom message
mdm.Application.exit("ask", "Are you sure you want to exit?");

mdm.Application Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page