This method is used for iterating through records of the data storage to which the ProgObj driver provides access.
Next lets you move the driver to the next set of data to be retrieved. For more information on using this method, see Using DDT Drivers.
|ProgObj||An expression, variable or parameter that specifies a reference to one of the objects listed in the Applies To section|
The method is applied to the following object:
The code below creates an Excel driver and then iterates through the records of the specified file via the properties and methods of the
def DDTDriverExample(): # Creates a driver Driver = DDT.ExcelDriver("C:\\MyFiles\\MyFile.xls", "Sheet1") # Iterates through records while not Driver.EOF(): # Gets a value from the storage and posts it to the log Log.Message(Driver.Value) DDT.CurrentDriver.Next() # Closes the driver DDT.CloseDriver(Driver.Name)
' Creates a driver
Set Driver = DDT.ExcelDriver("C:\MyFile.xls", "Sheet1")
' Iterates through records
While Not Driver.EOF()
' Gets a value from the storage and posts it to the log
' Closes the driver