Drivers

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

The object Drivers, is a collection of which contains the defined drivers of the project.

Properties:Top

Count Parent  

Methods:Top

CreateDriver CreateDriverEx DeleteDriver
Item    

Samples:Top



Public Sub DriversSample()
Dim zDrivers As Drivers
Dim zDriver As Driver
Dim i As Integer

	'get drivers collection
	Set zDrivers = MyWorkspace.ActiveDocument.Drivers

	'Enumerate existing drivers in the project
	For i = 0 To zDrivers.Count - 1
		Debug.Print zDrivers.Item(i).Name
	Next i

	'Create a new driver and check if already exists
	Set zDriver = zDrivers.Item("NewSimulationDriver")
	If zDriver Is Nothing Then
		Set zDriver = zDrivers.CreateDriver("NewSimulationDriver", "SIMUL32")
	End If

End Sub