JSAlert

Purpose:

Display a simple JavaScript alert box containing a custom message. The user must to click "OK" to proceed.

Category:

Messages

Syntax:

jsAlert "message"

message

Message to show in the alert box.

Example:

jsAlert "Hello from VisualNEO Web!"


JSConfirm

Purpose:

Display a simple JavaScript confirmation box. The user must click either "OK" or "Cancel" to proceed.

Category:

Messages

Syntax:

jsConfirm "confirmation message" [result var]

confirmation message

Message asking for confirmation  to the user.

result var

Variable to store the user response.

Example:

jsConfirm "Are you sure?" [myvar]


JSPrompt

Purpose:

Display a simple JavaScript input box and request that the user enter a value before proceeding.

Category:

Messages

Syntax:

jsPrompt "question" "prefilled answer" [result var]

question

Question the user must answer.

prefilled answer

Optional prefilled value for the answer.

result var

Variable to store the user response.

Example:

jsPrompt "What's your prefered software?" "VisualNEO" [userAnswer]


AlertBox

Purpose:

Display a themed dialog box containing a title, message and an OK button.

Category:

Messages

Syntax:

AlertBox "message tittle" "message text" "subroutine name"
message tittle

Title for the dialog box.

message text

Main message text.

subroutine name

Optional subroutine to execute when the dialog box is closed.

Example:

AlertBox "Greetings" "Hello world!" "mysubroutine"


MessageBox

Purpose:

Display a themed dialog message box with a custom message and buttons. To determine which button was clicked, create a Subroutine with a single integer parameter. This parameter will contain the number of the selected button (1 for first, 2 for second... or zero for none).

Category:

Messages

Syntax:

MessageBox "message title" "message text" "button1 text|button2 text|button3 text..." "subroutine name"
message tittle

Title for the dialog box.

message text

Main message text.

button1 text|button2 text|button3 text...

Buttons caption text separated with a | (Alt Gr -1) character.

subroutine name

Subroutine to execute when the dialog box is closed where the answer will be sent.

Example:

MessageBox "Colors" "Choose a color" "Red|Green|Blue" "mySubroutine"


Exit

Purpose:

Close the application with an optional confirming dialog box. Note: Some browsers and devices will not allow an app to close itself. However, this does work well with Windows exe apps.

Category:

Messages

Syntax:

Exit "message text"
message text

Confirmation message text.

Example:

Exit "Close App?"