📚 SAP Business One SDK Help

SetStatusBarMessage Method
See Also  Example
Text
The message text
Seconds
The duration of the message in the status bar
IsError

Indicates whether the message appears with a red background (error message):

  • True: Error message
  • False: Regular message

Description

Deprecated in UI API 2004.
The method is supported in the next two releases for backward compatibility. Instead, use Application. StatusBar to get a status bar object, and then call StatusBar.SetText.

Syntax

Visual Basic
Public Sub SetStatusBarMessage( _
   ByVal Text As String, _
   Optional ByVal Seconds As BoMessageTime = bmt_Medium, _
   Optional ByVal IsError As Boolean = True _
) 

Parameters

Text
The message text
Seconds
ValueDescription
bmt_Short5 seconds
bmt_Medium20 seconds
bmt_Long50 seconds
The duration of the message in the status bar
IsError

Indicates whether the message appears with a red background (error message):

  • True: Error message
  • False: Regular message

Example

(Visual Basic)Copy Code
m_oApplication.SetStatusBarMessage "Hello world!", bmt_Long, False

See Also