Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

USB.FindDevice

Finds USB devices.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
USB 2.4 Yes Yes Yes No No
MBS( "USB.FindDevice"; VendorID; ProductID )   More

Parameters

Parameter Description Example value
VendorID The vendor ID of the device to find. Typically a number between 1 and 65535. 1452
ProductID The product ID of the device. Typically a number between 1 and 65535. 545

Result

The index of the device in our USB device list.

Description

Finds USB devices.
Please call USB.Count before you use this function. Pass IDs for vendor and product. e.g. Apple has vendor ID 1452 (hex 05ac). An Apple keyboard can have a product ID of 545 (hex 0221). Please note that product and vendor IDs are shown usually as hexadecimal values.

Examples

Find a device and query it's product name:

$count = MBS( "USB.Count" )
$index = MBS( "USB.FindDevice"; $VendorID; $ProductID )
$name = MBS( "USB.GetProductName"; $index )

See also

Example Databases

Created 18th August 2014, last changed 18th August 2014


USB.Count   -   USB.FindSerialNumber

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins