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. ====== ReplaceEx ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Replace text in a way similar to interactive search ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strWhat** * [[scripting:api:data-type:BSTR|BSTR]] **strTo** * [[:scripting:api:search-type|eSearchType]] **nType** * [[:scripting:api:search-action|eSearchAction]] **nAction** * [[scripting:api:data-type:VARIANT|VARIANT]] **pSearchInStyle** * [[:scripting:api:search-result-type|eSearchResultType]] **nResult** * [[:scripting:api:find|eFind]] **dwFlags** * [[:scripting:api:find-ex|eFindEx]] **dwFlagsEx** = 0 (optional) ===== Syntax ===== ==== JavaScript ==== <code javascript> Application.ReplaceEx(strWhat, strTo, nType, nAction, pSearchInStyle, nResult, dwFlags, dwFlagsEx); </code>==== Visual Basic Script ==== <code vb> Application.ReplaceEx strWhat, strTo, nType, nAction, pSearchInStyle, nResult, dwFlags, dwFlagsEx </code>==== C++ ==== <code cpp> HRESULT hr = Application.ReplaceEx(strWhat, strTo, nType, nAction, pSearchInStyle, nResult, dwFlags, dwFlagsEx); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~