QLPreviewPanel.Clear
--------------------

Clears content of file list.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [QuickLook](component_QuickLook.md) | [4.3](newinversion43.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "QLPreviewPanel.Clear" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Clears content of file list.  
Please call this function always before you start to fill  
This also deletes any temporary file created by [QLPreviewPanel.AddPDF](QLPreviewPanelAddPDF.md) or [QLPreviewPanel.AddImage](QLPreviewPanelAddImage.md).  
### See also

- [QLPreviewPanel.AddContainer](QLPreviewPanelAddContainer.md)
- [QLPreviewPanel.AddImage](QLPreviewPanelAddImage.md)
- [QLPreviewPanel.AddPDF](QLPreviewPanelAddPDF.md)
- [QLPreviewPanel.Hide](QLPreviewPanelHide.md)
- [QLPreviewPanel.Move](QLPreviewPanelMove.md)
- [QLPreviewPanel.SetDismissTrigger](QLPreviewPanelSetDismissTrigger.md)
- [QLPreviewPanel.SetEditingAllowed](QLPreviewPanelSetEditingAllowed.md)
- [QLPreviewPanel.Show](QLPreviewPanelShow.md)

### Release notes

- **Version 9.2**
    - Fixed [QLPreviewPanel.Clear](http://www.mbsplugins.eu/QLPreviewPanelClear.shtml) for iOS.

### Example Databases

- [iOS/Examples/Markup](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/Markup.shtml#1ScriptAnchor_)
- [Mac only/Icon and QuickLook/QuickLook Preview Panel](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Icon%20and%20QuickLook/QuickLook%20Preview%20Panel.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 9.2pr7](https://www.mbsplugins.de/archive/2019-05-15/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [QLPreviewPanel functions for iOS](https://www.mbsplugins.de/archive/2018-08-15/QLPreviewPanel_functions_for_i/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 14th August 2018

  
[QLPreviewPanel.AddPDF](QLPreviewPanelAddPDF.md) - [QLPreviewPanel.CurrentPreviewItemIndex](QLPreviewPanelCurrentPreviewItemIndex.md)

[HTML Version](QLPreviewPanelClear.shtml)