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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

WIA.ImageCount

Queries number of scanned images.

Component Version macOS Windows Linux Server iOS SDK
WIA 6.5 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WIA.ImageCount" )

Parameters

none

Result

Returns number or error.

Description

Queries number of scanned images.

Examples

Import Images Script:

Set Variable [ $count; Value:MBS( "WIA.ImageCount") ]
If [ $count > 0 ]
    Set Variable [ $i; Value:0 ]
    Go to Layout [ “Images” (Images) ]
    Loop
        Set Variable [ $ImagePath; Value:MBS( "WIA.Image"; $i) ]
        If [ MBS( "Files.FileExists"; $ImagePath ) ]
            Set Variable [ $image; Value:MBS( "Container.ReadFile"; $ImagePath) ]
            New Record/Request
            Set Field [ Images::Name; MBS( "Path.LastPathComponent"; $ImagePath ) ]
            Set Field [ Images::Image; $image ]
            Commit Records/Requests [ No dialog ]
        End If
        #Next
        Set Variable [ $i; Value:$i + 1 ]
        Exit Loop If [ $i >= $count ]
    End Loop
End If

See also

Example Databases

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


WIA.Image - WIA.ImageDialog

Feedback: Report problem or ask question.