LabWindows/CVI

Table of Contents

ConfirmPopup

int ConfirmPopup (char title[], char message[]);

Purpose

Displays a prompt message in a dialog box and waits for the user to select the Yes or No button.

Parameters

Input
Name Type Description
title char [] Title of the dialog box.
message char [] Message to display in the dialog box.

To display a multi-line message, embed newline characters (\n) in the message string.

Return Value

Name Type Description
responseValue int The user response.

1 User selected Yes.
0 User selected No.

If the value is negative, an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the ConfirmPopup function:

  • toolbox\ini.cws

    Open example
  • userint\clipbord.cws

    Open example
  • userint\popups.cws

    Open example

Log in to get a better experience

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit