CommandToIndex

Method of IBaseToolBar

Get command index

  • BSTR strCommandName

Return Value

JavaScript

var pnPosition = BaseToolBar.CommandToIndex(strCommandName);

Visual Basic Script

pnPosition = BaseToolBar.CommandToIndex strCommandName

C++

long nPosition;
HRESULT hr = BaseToolBar.CommandToIndex(strCommandName, &nPosition);