<title>Monkeybread Software - MBS FileMaker Plugin: MatrixDongle.Count</title></head><body>MatrixDongle.Count
------------------

Returns the number of dongles available at the specified LPT or USB interface.

<style>
td.grau 
{
background-color:#EEE;
text-align: center;
}
</style>| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MatrixDongle](component_MatrixDongle.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "MatrixDongle.Count" { ; PortNumber } ) 

**MBS**( **"MatrixDongle.Count";** /\* Returns the number of dongles available at the specified LPT or USB interface. \*/  
**$PortNumber**) /\* Optional; With LPT dongles, this is the number of the LPT port to which the dongles are connected. With LPT dongles, the port number must be between 1 and 3. Example: 1 for LPT1, 2 for LPT2 or 3 for LPT3. With USB, this parameter must be 85.   
This variable is ignored with network calls.   
Default for MBS Plugin is 85 for USB.e.g. 85 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PortNumber | With LPT dongles, this is the number of the LPT port to which the dongles are connected. With LPT dongles, the port number must be between 1 and 3. Example: 1 for LPT1, 2 for LPT2 or 3 for LPT3. With USB, this parameter must be 85.    This variable is ignored with network calls.    Default for MBS Plugin is 85 for USB. | 85 | Optional |

### Result

Returns number or error.

### Description

Returns the number of dongles available at the specified LPT or USB interface.  
### Examples

Count dongles:

Set Field \[MatrixDongle::CountResult; MBS( "MatrixDongle.Count" )\]

### See also

- [MatrixDongle.Find](MatrixDongleFind.md)
- [MatrixDongle.GetDriverFlag](MatrixDongleGetDriverFlag.md)
- [MatrixDongle.MemorySize](MatrixDongleMemorySize.md)
- [MatrixDongle.Model](MatrixDongleModel.md)
- [MatrixDongle.ReadHex](MatrixDongleReadHex.md)
- [MatrixDongle.ReadSerialNumber](MatrixDongleReadSerialNumber.md)
- [MatrixDongle.ReadText](MatrixDongleReadText.md)
- [MatrixDongle.Version](MatrixDongleVersion.md)
- [MatrixDongle.WriteHex](MatrixDongleWriteHex.md)
- [MatrixDongle.WriteText](MatrixDongleWriteText.md)

This function does not need a paid license.

Created 1st August 2015 , last changed 31st July 2020

  
[Matrix.Width](MatrixWidth.md) - [MatrixDongle.Find](MatrixDongleFind.md)

💬 [Ask a question or report a problem](https://www.monkeybreadsoftware.com/feedback/?what=filemaker&path=MatrixDongle.Count)

[HTML Version](MatrixDongleCount.shtml)