Toolbar.SetImage
----------------

Overwrites image used for a toolbar item.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Toolbar](component_Toolbar.md) | [6.4](newinversion64.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "Toolbar.SetImage"; Identifier; Image ) 

**MBS**( **"Toolbar.SetImage";** /\* Overwrites image used for a toolbar item. \*/  
**$Identifier**; /\* The toolbar identifier.  
  
Possible toolbar identifiers:  
RecordNavigationToolbarItemIdentifier, ShowAllToolbarItemIdentifier, NSToolbarSpaceItem, NewRecordToolbarItemIdentifier, DeleteRecordToolbarItemIdentifier, NSToolbarSpaceItem, FindDropdownToolbarItemIdentifier, SortToolbarItemIdentifier, UploadServerToolbarItemIdentifier, QuickFindToolbarItemIdentifier, DuplicateRecordToolbarItemIdentifier, ManageToolbarItemIdentifier, SaveAsExcelToolbarItemIdentifier, SaveAsPDFToolbarItemIdentifier, SaveAsSnapshotLinkToolbarItemIdentifier, ImportToolbarItemIdentifier, ExportToolbarItemIdentifier, PrintToolbarItemIdentifier, PageSetupToolbarItemIdentifier, SendMailToolbarItemIdentifier, OmitRecordToolbarItemIdentifier, ShowOmittedToolbarItemIdentifier, NewWindowToolbarItemIdentifier, DebuggerToolbarItemIdentifier, DataViewerToolbarItemIdentifier, SavedFindToolbarItemIdentifier, NewLayoutAnyModeToolbarItemIdentifiere.g. "NewRecordToolbarItemIdentifier" \*/   
**$Image**) /\* The image to use for the toolbar item. Pass a container value with JPEG, TIFF, PNG or other image formats. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Identifier | The toolbar identifier.      Possible toolbar identifiers:   RecordNavigationToolbarItemIdentifier, ShowAllToolbarItemIdentifier, NSToolbarSpaceItem, NewRecordToolbarItemIdentifier, DeleteRecordToolbarItemIdentifier, NSToolbarSpaceItem, FindDropdownToolbarItemIdentifier, SortToolbarItemIdentifier, UploadServerToolbarItemIdentifier, QuickFindToolbarItemIdentifier, DuplicateRecordToolbarItemIdentifier, ManageToolbarItemIdentifier, SaveAsExcelToolbarItemIdentifier, SaveAsPDFToolbarItemIdentifier, SaveAsSnapshotLinkToolbarItemIdentifier, ImportToolbarItemIdentifier, ExportToolbarItemIdentifier, PrintToolbarItemIdentifier, PageSetupToolbarItemIdentifier, SendMailToolbarItemIdentifier, OmitRecordToolbarItemIdentifier, ShowOmittedToolbarItemIdentifier, NewWindowToolbarItemIdentifier, DebuggerToolbarItemIdentifier, DataViewerToolbarItemIdentifier, SavedFindToolbarItemIdentifier, NewLayoutAnyModeToolbarItemIdentifier | "NewRecordToolbarItemIdentifier" |
| Image | The image to use for the toolbar item. Pass a container value with JPEG, TIFF, PNG or other image formats. | $image |

### Result

Returns OK or error.

### Description

Overwrites image used for a toolbar item.  
Use an empty image to remove image from table.  
You need to call [Toolbar.Install](ToolbarInstall.md) at least once before using this command to have it take effect.  
### Examples

Sets images for new and delete toolbar:

 Set Variable \[$r ; Value:MBS ( "Toolbar.SetImage"; "NewRecordToolbarItemIdentifier"; Toolbar::NewRecordImage )\]  
Set Variable \[$r ; Value:MBS ( "Toolbar.SetImage"; "DeleteRecordToolbarItemIdentifier"; Toolbar::DeleteRecordImage )\]  
### See also

- [Toolbar.Install](ToolbarInstall.md)
- [Toolbar.SetLabel](ToolbarSetLabel.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.4pr7](https://www.mbsplugins.de/archive/2016-09-14/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 12nd September 2016 , last changed 12nd September 2016

  
[Toolbar.Register](ToolbarRegister.md) - [Toolbar.SetLabel](ToolbarSetLabel.md)

[HTML Version](ToolbarSetImage.shtml)