MessageBox
Description:
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. |
|
|
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. |
Usage:
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:
// 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