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. ====== CommandToIndex ====== Method of [[:scripting:api:base-tool-bar:start|IBaseToolBar]] ===== Description ===== Get command index ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strCommandName** ==== Return Value ==== * [[scripting:api:data-type:long|long]] **pnPosition** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pnPosition = BaseToolBar.CommandToIndex(strCommandName); </code>==== Visual Basic Script ==== <code vb> pnPosition = BaseToolBar.CommandToIndex strCommandName </code>==== C++ ==== <code cpp> long nPosition; HRESULT hr = BaseToolBar.CommandToIndex(strCommandName, &nPosition); </code>===== See Also ===== [[:scripting:api:base-tool-bar:start|IBaseToolBar]] ~~NOTOC~~