nbenitus
15 years agoContributor
Find and FindAll methods
Hi all,
I am trying to find a group of objects. This is my code:
Dim PropNames, PropValues, Download_Build
PropNames = Array("innerHTML")
PropValues = Array("Archive Files")
Download_Build = NameMapping.FindAll(PropNames, PropValues, 1000, True).href
Log.Message(Download_Build(0))
At first, I tried the Find method instead of FindAll, which returned me the last object of the group. But I want the first object, so I used the FindAll method. The problem is when I run the FindAll method, I get the following error message:
Object required: 'NameMapping.FindAll(...)'
Unit: "Unit1" Line: 71 Column: 3.
I have read the documentation, but it seems I should be able to use the FindAll method the same way than the Find method.
Any hints would be greatly appreciated.
Benoit
I am trying to find a group of objects. This is my code:
Dim PropNames, PropValues, Download_Build
PropNames = Array("innerHTML")
PropValues = Array("Archive Files")
Download_Build = NameMapping.FindAll(PropNames, PropValues, 1000, True).href
Log.Message(Download_Build(0))
At first, I tried the Find method instead of FindAll, which returned me the last object of the group. But I want the first object, so I used the FindAll method. The problem is when I run the FindAll method, I get the following error message:
Object required: 'NameMapping.FindAll(...)'
Unit: "Unit1" Line: 71 Column: 3.
I have read the documentation, but it seems I should be able to use the FindAll method the same way than the Find method.
Any hints would be greatly appreciated.
Benoit