Prompt

Method of IApplication

Displays a dialog box to enter a string with possible default value

  • BSTR strMessage
  • BSTR strDefault = "" (optional)

Return Value

JavaScript

var pstrAnswer = Application.Prompt(strMessage, strDefault);

Visual Basic Script

pstrAnswer = Application.Prompt strMessage, strDefault

C++

BSTR pstrAnswer;
HRESULT hr = Application.Prompt(strMessage, strDefault, &pstrAnswer);