scripting:api:application:confirm

confirm

Method of IApplication

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

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