Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Prompt ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Displays a dialog box to enter a string with possible default value ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strMessage** * [[scripting:api:data-type:BSTR|BSTR]] **strDefault** = %%""%% (optional) ==== Return Value ==== * [[scripting:api:data-type:BSTR|BSTR]] **pstrAnswer** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pstrAnswer = Application.Prompt(strMessage, strDefault); </code>==== Visual Basic Script ==== <code vb> pstrAnswer = Application.Prompt strMessage, strDefault </code>==== C++ ==== <code cpp> BSTR pstrAnswer; HRESULT hr = Application.Prompt(strMessage, strDefault, &pstrAnswer); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~