WordFile.MediaFiles
-------------------

Queries list of media files in the word file.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WordFile](component_WordFile.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WordFile.MediaFiles"; WordFile ) 

**MBS**( **"WordFile.MediaFiles";** /\* Queries list of media files in the word file. \*/  
**$WordFile**) /\* The reference number of the open word file. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |

### Result

Returns list or error.

### Description

Queries list of media files in the word file.  
This may include jpeg and png files.  
### Examples

Check what media files exist in a word file:

 Set Variable \[$w ; Value:MBS ( "[WordFile.OpenContainer](WordFileOpenContainer.md)"; WordTest::wordfile )\]  
Set Variable \[$r ; Value:MBS ( "WordFile.MediaFiles"; $w )\]  
Set Variable \[$r ; Value:MBS ( "[WordFile.Release](WordFileRelease.md)"; $w )\]  
### See also

- [WordFile.GetMediaFile](WordFileGetMediaFile.md)
- [WordFile.OpenContainer](WordFileOpenContainer.md)
- [WordFile.Release](WordFileRelease.md)
- [WordFile.SetMediaFile](WordFileSetMediaFile.md)

### Example Databases

- [WordFile/WordFile](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WordFile/WordFile.shtml#5ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 6.3pr6](https://www.mbsplugins.de/archive/2016-07-09/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2021, Seite 20](https://filemaker-magazin.de/neuigkeit/4165-Appetithappen-FMM_202106)

This function checks for a license.

Created 6th July 2016 , last changed 6th July 2016

  
[WordFile.List](WordFileList.md) - [WordFile.OpenContainer](WordFileOpenContainer.md)

[HTML Version](WordFileMediaFiles.shtml)