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  

WIA.SetCurrentDevice

Sets the current device.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WIA 6.5 No Yes No No No

MBS( "WIA.SetCurrentDevice"; DeviceID )

Parameters

Parameter Description Example value
DeviceID Pass name or unique ID for device. "Brother DCP-8085DN LAN"

Result

Returns OK or error.

Description

Sets the current device.

Examples

Select a device:

Set Variable [$r; Value:MBS("WIA.SetCurrentDevice"; WIA Scan::Value)]
If [$r = "OK"]
    Show Custom Dialog ["Select Device Dialog Result"; "DeviceID: " & MBS("WIA.GetCurrentDevice") & ¶ & "Name: " & MBS("WIA.DevicePropertyValue"; ""; "Nam…]
Else
    Show Custom Dialog ["Select Device Dialog Result"; $r]
End If

See also

Example Databases


WIA.SelectDeviceDialog   -   WIA.SetDevicePropertyValue

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins