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.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Printer.PrinterCount

Queries the number of printers.

Component Version macOS Windows Linux Server iOS SDK
Printer 3.0 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "Printer.PrinterCount" )

Parameters

none

Result

Returns the number of printers.

Description

Queries the number of printers.

Examples

Queries number of printers:

$r = MBS( "Printer.PrinterCount" )

Query list of all printers with While loop:

Let ( [
    count = MBS( "Printer.PrinterCount" );
    list = While (
        [
            l = "";
            i = 0
        ];
            i < count ;
        [
            l = l & MBS( "Printer.PrinterName"; i ) & ¶;
            i = i + 1
        ] ; l )
    ]; list )

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 13th May 2020


Printer.Print - Printer.PrinterInfo

💬 Ask a question or report a problem