Index Property (ADriver)

Returns the index of the current object in its parent object.

Syntax

[ lIndex = ] Object.Index

The Index property syntax has the following parts:

 

Name

Type

Description

Object

ADriver

ADriver object

lIndex

Long

An integer specifying the zero-based index of the current Driver in its parent object. The default value is 0.

Example

The following statements list to the current Log the number and name of each driver:

for n = 0 to System.DriversCount-1

drv = System.Drivers(n)

print drv.Index+1, drv.Name

next

Applies to

ADriver

See Also

ModuleType