📚 SAP Business One SDK Help

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

The message type

Description

Displays a message in the status bar.

Syntax

Visual Basic
Public Sub SetText( _
   ByVal Text As String, _
   Optional ByVal Seconds As BoMessageTime = bmt_Medium, _
   Optional ByVal Type As BoStatusBarMessageType = smt_Error _
) 

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

Remarks

For standards and guidelines about creating messages, see the SAP Business One User Interface Standards and Guidelines.

See Also