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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

WIA.DeviceCount

Queries number of devices.

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

MBS( "WIA.DeviceCount" )

Parameters

none

Result

Returns number or error.

Description

Queries number of devices.

Examples

Walk over list of devices and query properties:

Go to Layout [“WIA Scan” (WIA Scan)]
Delete All Records [No dialog]
Set Variable [$c; Value:MBS("WIA.DeviceCount")]
If [MBS("IsError")]
    Show Custom Dialog ["Error"; $c]
Else
    If [$c > 0]
        Set Variable [$i; Value:0]
        Loop
            Perform Script [“List Properties”; Parameter: $i]
            #Next
            Set Variable [$i; Value:$i + 1]
            Exit Loop If [$i >= $c]
        End Loop
    End If
End If

See also

Example Databases


WIA.ClearCurrentDevice   -   WIA.DevicePropertyKeys

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos