Returns an ADriver object as specified by the vKey parameter.
[ aDriver = ] Object.Drivers ( vKey )
The Drivers property syntax has the following parts:
Name |
Type |
Description |
Object |
ASystem |
ASystem object |
vKey |
Val Variant |
The parameter which specifies the ADriver object. This can be a number (index) or a string (driver shortcut name). |
aDriver |
ADriver |
An ADriver object as specified by the vKey parameter. |
If a driver file is missing (shows in yellow in the workspace Window). The return object is Nothing.
The following statements retrieve an ADriver object as specified by the vKey:
drv = System.Drivers(5)
or
drv = System.Drivers("DMM")
System Variable, ADriver, ASystem Class, DriversCount