FastCommandBarSearch

Add-in Express™ Support Service
That's what is more important than anything else

FastCommandBarSearch
 
Guest


Guest


Hi!

I have found the FastCommandBarSearch property of TadxCOMAddInModule but it is undocumented. Can you explain what this property does?
Posted 28 Jun, 2004 14:39:02 Top
Dmitry Kostochko


Add-in Express team


Posts: 2731
Joined: 2004-04-05
Use True for this property to speed up all searches of command bars. By default, command bars are found by their names via the CommandBars collection enumeration. But it is slow.

If you set True to FastCommandBarSearch, we just do the followings to find command bars:

try
  CmdBar := HostApp.CommandBars[CmdBarName];
except
  CmdBar := nil;
end;

As you see there is an exception if the name isn't found. But this exception is "stubbed" and searches are fast.

Sincerely,
ADX Support Team
Posted 29 Jun, 2004 08:48:20 Top