Driver Variable

The current driver ADriver object.

Type

ADriver Public Const

Comments

Procedures that are included in a Driver module should use the Driver variable when they require the procedure to set or to get properties and methods that belong to the driver. Using the driver name to access the current driver object is not recommended, since the driver name may be change when configured to a different system.

The Driver variable may be used to obtain the values of properties set by the driver property pages, such as the driver interface type, its address, and more.

Example

The following example uses the driver InterfaceInfo properties to initialize an instrument:

Procedure OnInit() : Void public

nStatus : VAL Short

{

GT64Initialize(Driver.InterfaceInfo(adriverInfoIsaIo, 0), m_nHandle, nStatus)

CheckError(nStatus)

}

See Also

ADriver, Form, Program, System