MessageBox Method
Description
This function uses the PC-DMIS message box function. It includes all functionality including cancelling of execution tied to the Cancel button.
Syntax
Visual Basic |
---|
Public Function MessageBox( _ ByVal Message As String, _ ByVal TITLE As String, _ ByVal Type As ENUM_PCDMSG_TYPES _ ) As ENUM_PCDMSG_RETVALS |
Parameters
- Message
- Required String that is the message of the message box
- TITLE
- Optional String that is the title of the message box. If omitted, the title will be the name and version of PC-DMIS.
- Type
Optional Long used to indicate the button types to be used in the message box. Examples include, "OK", "Cancel", "Retry", "Yes", "No" etc. If omitted, the default is "OK".Value Description MSGTYP_ABORTRETRYIGNORE MSGTYP_DEFBUTTON2 MSGTYP_DEFBUTTON3 MSGTYP_ICONASTERISK MSGTYP_ICONEXCLAMATION MSGTYP_ICONHAND MSGTYP_ICONQUESTION MSGTYP_OK MSGTYP_OKCANCEL MSGTYP_RETRY_CANCEL MSGTYP_YESNO MSGTYP_YESNOCANCEL
Return Type
Integer value of the button chosen by the user. The value is from ENUM_PCDMSG_RETVALS enumeration.
See Also