MessageBox

Description:
Display a Message to a User and require a Response.

Format:
InputBox (string Title, string Message, string, Labels, string Fields, string Buttons)

Parameters:

Stringr

Title

Title of the InputBox form

String

Message

Message displayed in the InputBox form

String

Icon (optional)

Icon to be displayed in the MessageBox.
– Infornation
– Question
– StopSign
– Exclamation

Default is 'Information'
Required if Buttons are specified.

String

Buttons

Comma delimited list of Button Names.

Integer

Default

Default Button that will be clicked if user presses the <ENTER> key

Return Value:

String

Button

Name of Button that was clicked.
Always returned as UPPERCASE

Usage:
Use this function to display a Message to the User and require a Response.

A sound is heard when a MessageBox opens.
When a MessageBox is opened the Autoweb Control Panel is hidden until the MessageBox is closed.

Example 1:
Basic MessageBox to notify the User of some information.

String strSearch

MessageBox('Error', 'The Document does not exist!')

Example 2:
Complex MessageBox. Use a MessageBox to ask a Question, Display 'Try Again' and 'Cancel' buttons. Make the 'Cancel' button the default button.

// Declare variables
string strTitle
string strMessage
string strLabels
string strFields
string strButtons
string strResult

string strUser
string strPass
boolean boolSave

// Set Values
strTitle = 'Search Error'
strMessage = 'No Documents matched your Search Words.'
strButtons = 'Try Again, Cancel'

strResult = MessageBox (strTitle, strMessage, 'StopSign', strButtons, 2)
If strResult = 'TRY AGAIN'
 // Do something
 . . .
Else
 // Do something else
 . . .
EndIf

Hosted by www.Geocities.ws

1