> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/toolbars.md).

# Toolbars

The **Toolbars** object lets you enumerate all the defined toolbars in your Directory Opus configuration (whether currently turned on or not). It's retrieved using the [**DOpus**](/directory-opus/manual/reference/scripting_reference/scripting_objects/dopus.md)**.Toolbars** method.

| Property Name      | Return Type                                                                                                                                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| *\<default value>* | *collection:*[**Toolbar**](/directory-opus/manual/reference/scripting_reference/scripting_objects/toolbar.md)                                             | Returns a collection of [**Toolbar**](/directory-opus/manual/reference/scripting_reference/scripting_objects/toolbar.md) objects that you can enumerate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| fdb                | <p><em>string</em><br>or<br>**<a href="/directory-opus/manual/reference/scripting_reference/scripting_objects/vector.md">Vector</a>:**<em>string</em></p> | <p>Returns the name(s) of the currently selected File Display Toolbar(s).<br>If the FDB toolbar is disabled, returns the string <strong>!static</strong> to indicate a static header.<br>If there is only one FDB toolbar configured (the usual case), it is returned as a simple string.<br>If more than one FDB toolbar is configured, a <a href="/directory-opus/manual/reference/scripting_reference/scripting_objects/vector.md"><strong>Vector</strong></a> of strings is returned.<br>You can use <strong>DOpus.toolbars.fdb(0)</strong> in both JScript and VBScript if you just want the name of the first toolbar without worrying about whether the number of other toolbars (if any). Otherwise, use <strong>TypeName(...)</strong> in VBScript and <strong>typeof</strong> in JScript to determine the return type.</p> |
| viewer             | *string*                                                                                                                                                  | Returns the name of the currently selected Viewer Toolbar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
