Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

DisplayMessageBox Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.DisplayMessageBox ( dlgTitle, messageText, msgBoxType = MsgBox_Information, dlgOptions = 0, win32Flags = 0)

Return Value

long

Returns the user response. This is the same as the return value from the Windows SDK MessageBox function. The following are typical values: IDOK (1), IDCANCEL (2), IDYES (6), IDNO (7).

Purpose

Launches a message dialog box.

Remarks

Calling this method on a remote instance of the engine displays the message on the local machine.

Parameters

dlgTitle As String

[In] Specifies the title of the dialog box. Pass an empty string to use the default title for the dialog box.

messageText As String

[In] Specifies the text to display in the message box.

msgBoxType As MsgBoxTypes

[In] Specifies the type of message box. This tells the message box which icon to display.

This parameter has a default value of MsgBox_Information.

dlgOptions As long

[In] Pass either CommonDlgOption_NoOptions or CommonDlgOption_ModalToAppMainWnd.

This parameter has a default value of 0.

win32Flags As long

[In] Specifies any additional flags allowed by the Windows SDK MessageBox function.

This parameter has a default value of 0.


See Also

CommonDialogOptions


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit