Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

WIA.SetCurrentDevice

Sets the current device.

Component Version macOS Windows Linux Server iOS SDK
WIA 6.5 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WIA.SetCurrentDevice"; DeviceID )   More

Parameters

Parameter Description Example
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

This function checks for a license.

Created 6th November 2016, last changed 6th November 2016


WIA.SelectDeviceDialog - WIA.SetDevicePropertyValue

💬 Ask a question or report a problem