confirm

Method of IApplication

Displays a message in a simple dialog box with the OK button and the Cancel button

Return Value

JavaScript

var pvbAnswer = Application.confirm(strMessage);

Visual Basic Script

pvbAnswer = Application.confirm strMessage

C++

VARIANT_BOOL pvbAnswer;
HRESULT hr = Application.confirm(strMessage, &pvbAnswer);