IKSlideShow.SetAudioFile
------------------------

Sets the audio file to play while doing slide show.

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

MBS( "IKSlideShow.SetAudioFile"; Path ) 

**MBS**( **"IKSlideShow.SetAudioFile";** /\* Sets the audio file to play while doing slide show. \*/  
**$Path**) /\* The native file path to the audio file.e.g. "/Users/cs/Desktop/test.m4a" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native file path to the audio file. | "/Users/cs/Desktop/test.m4a" |

### Result

Returns OK or error.

### Description

Sets the audio file to play while doing slide show.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
### See also

- [IKSlideShow.GetAudioFile](IKSlideShowGetAudioFile.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Blog Entries

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

This function is free to use.

Created 5th August 2016 , last changed 5th August 2016

  
[IKSlideShow.Run](IKSlideShowRun.md) - [IKSlideShow.SetMode](IKSlideShowSetMode.md)

[HTML Version](IKSlideShowSetAudioFile.shtml)