Description
Sends a modal message box to the SAP Business One application.
Syntax
| Visual Basic |
|---|
Public Function MessageBox( _
ByVal Text As String, _
Optional ByVal DefaultBtn As Long = 1, _
Optional ByVal Btn1Caption As String = "Ok", _
Optional ByVal Btn2Caption As String = "", _
Optional ByVal Btn3Caption As String = "" _
) As Long |
Parameters
Return Type
The index of the button that was clicked
Remarks
Example
| Displaying a message box (Visual Basic) | Copy Code |
|---|
Dim iReturnValue As Integer
iReturnValue = MessageBox("Do you want to continue?", 3, "&Yes!", "&No", "&Maybe")
Select Case iReturnValue
Case 1:
Case 2:
Case 3:
End Select
|
|
See Also