Twain.SelectDSIdentity
----------------------

Sets current data source.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Twain](component_Twain.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Twain.SelectDSIdentity"; IndexOrName ) 

**MBS**( **"Twain.SelectDSIdentity";** /\* Sets current data source. \*/  
**$IndexOrName**) /\* Which data source to use. Can be name of product or index in list of identities.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| IndexOrName | Which data source to use. Can be name of product or index in list of identities. | 1 |

### Result

Returns OK or error message.

### Description

Sets current data source.  
### See also

- [Twain.CurrentDSIdentity](TwainCurrentDSIdentity.md)
- [Twain.GetDSIdentity](TwainGetDSIdentity.md)
- [Twain.SetDefaultDSIdentity](TwainSetDefaultDSIdentity.md)

### Example Databases

- [Win Only/Scanning/Twain](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Scanning/Twain.shtml#5ScriptAnchor_)

This function checks for a license.

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

  
[Twain.SelectDS](TwainSelectDS.md) - [Twain.SetAutofeed](TwainSetAutofeed.md)

[HTML Version](TwainSelectDSIdentity.shtml)