alert

The alert method displays an alert dialog box.

 

Syntax

alert(System.Object cMsg, System.Int16 nIcon, System.Int16 nType, System.String cTitle);

 

Parameters

cMsg

[optional] Message to be shown.

nIcon

[Not supported] Default value 1.

nType

[optional] Button configuration.  0: OK, 1: OK and Cancel, 2: Yes and No, and 3: Yes, No and Cancel.

cTitle

[optional] Dialog box title.

 

Return Value

Returns the type of the button pressed by the user. 1: Ok, 2: Cancel, 3: No, and 4: Yes.

 

Remarks

Member of app.

 

Example

 
app.alert();
app.alert("Hello World", 2, 3, "Amyuni Technologies");