📚 SAP Business One SDK Help

SetSystemMessage Method
See Also 
Text
The message text
Seconds
The message duration, indicating how long the message is displayed
Type

The message type

HelpURL
The hyperlink of the help document
HelpContent
The help content for the message
Context
The context of the message
MessageID
The ID of the system message

Description

Displays a system message in the status bar.

Syntax

Visual Basic
Public Sub SetSystemMessage( _
   ByVal Text As String, _
   Optional ByVal Seconds As BoMessageTime = bmt_Medium, _
   Optional ByVal Type As BoStatusBarMessageType = smt_Error, _
   Optional ByVal HelpURL As String = "", _
   Optional ByVal HelpContent As String = "", _
   Optional ByVal Context As String = "", _
   Optional ByVal MessageID As Long = 0 _
) 

Parameters

Text
The message text
Seconds
ValueDescription
bmt_Short5 seconds
bmt_Medium20 seconds
bmt_Long50 seconds
The message duration, indicating how long the message is displayed
Type
ValueDescription
smt_NoneIndicates no message was sent to the status bar.

Use this type only to check if a message was sent or to clear a previous message immediately.

smt_WarningWarning message (blue background)
smt_ErrorError message (red background)
smt_SuccessSuccess message (green background)

The message type

HelpURL
The hyperlink of the help document
HelpContent
The help content for the message
Context
The context of the message
MessageID
The ID of the system message

See Also