DBWMsgBox2

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface >

DBWMsgBox2

Description

Shows a simple message box with a specified title and a specified button configuration.

Syntax

Function DBWMsgBox2(message, style, title)

Parameters

message

message to display

style

the style button of the message box

title

title of the window

DBWMsgBox2_1   DBWMsgBox2_4

Remarks

The style parameter is an integer representing the standard VB costants
Costants references here.

 

See also

DBWMsgBox
DBWMsgBox1

 

Example

Sub main()
 DBWinit(TRUE)
 style=4 'VBYesNo
 ok = DBWMsgBox2("hello world!",style,"msgbox title")
 if ok=6 then
  msgbox "you pressed YES"
 else
  msgbox "you pressed NO"
 end if
End sub