object doesn't support this property or method
Hello,
This is weird for me, I'm working with vbscript in testcomplete and until a few hours ago my code was working (see below a snippet) but suddenly it prompted me an erro telling me that the object doesn't support this property or method: 'DataPool.item'.
The code is here:
Function DataPoolfile()
DataPool.FilePath = Project.Path + "TestData\\" 'Test data sheet path
DataPool.FileName = Project.Variables.Filename 'Test data file name
DataPool.SheetName = Project.Variables.Sheetname 'Test data sheet name
DataPool.New()
firstCommand = true
prevCmd = ""
Set objArrayList = CreateObject("System.Collections.ArrayList")
While (not DataPool.EOF)
If (DataPool.Item("Run") = "Yes") Then
run = DataPool.Item("Run")
sc = CDbl(DataPool.Item("Scenario #"))
....
End If
...
Wend
Please, I need help!!!