# 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**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dopus)**.Toolbars** method.

| Property Name      | Return Type                                                                                                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *\<default value>* | *collection:*[**Toolbar**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/toolbar) | Returns a collection of [**Toolbar**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/toolbar) objects that you can enumerate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| fdb                | <p><em>string</em><br>or<br>**<a href="vector">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="vector"><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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
