Displays a dialogue box containing text and labelled button and returns a code corresponding to the button pressed.
Syntax:
ALERT(message:Text, button1:Text {, button2:Text})
A dialogue box is displayed containing the text in the string message, and buttons labelled with the text in button1 and the optional button2.
Returns 1
when button1 is clicked and 2
when button2 is clicked.
Only makes sense inside custom functions.
Example:
ALERT("Are you under 18?", "Yes", "No")
If the user clicks on Yes in the dialogue box created by this example,
ALERT
passes the value 1
back to the calling custom function which must then interpret and act upon it.