Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

ImageCapture.OpenDevice

Requests to open a session on the device.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImageCapture 6.4 Yes No No No No

MBS( "ImageCapture.OpenDevice"; Device )

Parameters

Parameter Description Example value
Device The device ID.
Can be zero based index in device list.
Or UUID, Name or persitent ID string.
0

Result

Returns OK or error.

Description

Requests to open a session on the device.
A client MUST open a session on a device in order to use the device.

If needed closes current device to open new device.

Examples

Open device:

Set Variable [$r; Value:MBS("ImageCapture.OpenDevice"; Images::Device)]
If [MBS("iserror")]
    Show Custom Dialog ["Failed to open"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
    Exit Script []
End If

See also

Example Databases


ImageCapture.Initialize   -   ImageCapture.PreferredDevice

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos