MsgBox Function

Esitetään viestillinen valintaikkuna ja palautetaan arvo.

Syntaksi:


MsgBox (Prompt As String [,Buttons = MB_OK [,Title As String]]) As Integer

Parametrit:

prompt: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13).

title: String expression displayed in the title bar of the dialog. If omitted, the title bar displays the name of the respective application.

buttons: Any integer expression that specifies the dialog type, as well as the number and type of buttons to display, and the icon type. buttons represents a combination of bit patterns, that is, a combination of elements can be defined by adding their respective values:

Named constant

Integer value