msgBox
Top  Previous  Next

val = msgBox ( string Text [, integer Style =0 ] )

Use this function to display a message box.

Parameters
 
Text  
 
A string containing the message to be displayed in the message box.  
 
Style  
 
An optional enumerated integer that describes the style of the message box. Must be the sum of the values from the following two groups:  
 
MB_OK – the message box contains one pushbutton: OK.  
MB_OKCANCEL – the message box contains two pushbuttons: OK and Cancel.  
MB_YESNO – the message box contains two pushbuttons: Yes and No.  
MB_YESNOCANCEL – the message box contains three pushbuttons: Yes, No, and Cancel.  
 
ICON_EXCLAM – an exclamation-point icon appears in the message box.  
ICON_QUEST – a question-mark icon appears in the message box.  
ICON_INFO – an icon consisting of an "i" in a circle appears in the message box.  
ICON_STOP – a stop-sign icon appears in the message box.  
 
Return value
 
ID_OK – the OK button was selected.  
ID_YES – the Yes button was selected.  
ID_NO – the No button was selected.  
ID_CANCEL – the Cancel button was selected.  
 
Example
 
Val=MsgBox("Exit ImageWarp?", MB_YESNO+ICON_QUEST)  
If val=ID_YES Then  
 terminate()  
EndIf