XL.Book.GetPictureType
----------------------

Returns a picture type at position index.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Book.GetPictureType"; BookRef; Index ) 

**MBS**( **"XL.Book.GetPictureType";** /\* Returns a picture type at position index. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$Index**) /\* The index of the picture from 0 to [XL.Book.PictureCount](XLBookPictureCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| Index | The index of the picture from 0 to [XL.Book.PictureCount](XLBookPictureCount.md)-1. | 0 |

### Result

Returns picture type or error.

### Description

Returns a picture type at position index.  
Types are: PNG, JPEG, WMF, GIF, DIB, EMF, SVG and TIFF.  
### See also

- [XL.Book.AddPictureFile](XLBookAddPictureFile.md)
- [XL.Book.GetPicture](XLBookGetPicture.md)
- [XL.Book.PictureCount](XLBookPictureCount.md)

### Release notes

- **Version 14.2**
    - Added SVG for [XL.Book.GetPictureType](https://www.mbsplugins.eu/XLBookGetPictureType.shtml) and [XL.Book.GetPicture](https://www.mbsplugins.eu/XLBookGetPicture.shtml).
    - Improved [XL.Book.GetPictureType](https://www.mbsplugins.eu/XLBookGetPictureType.shtml) to report future types as number.

### Example Databases

- [XL/XL Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/XL%20Test.shtml#6ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 14.2pr2](https://www.mbsplugins.de/archive/2024-04-11/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 5th April 2024

  
[XL.Book.GetPicture](XLBookGetPicture.md) - [XL.Book.GetRGBMode](XLBookGetRGBMode.md)

[HTML Version](XLBookGetPictureType.shtml)