07-10-2008, 06:31 PM
Hi,
i don't understand this behavior: i have a page with many links and I use ChildObjects with this description:
[pag is a Page Object].
If I run many times this code, NoOfLink is not always the same number...
1. Why?
2. Which is the difference between "Class Name" and "micclass"?
3. In my page I have more links than NoOfLink...
i don't understand this behavior: i have a page with many links and I use ChildObjects with this description:
Code:
Dim descrLink, objLink, NoOfLink
Set descrLink = Description.Create()
descrLink("Class Name").value="Link"
Set objLink = pag.ChildObjects(descrLink)
NoOfLink = objLink.Count
msgbox NoOfLink
Set descrLink=nothing
Set objLink=nothing
[pag is a Page Object].
If I run many times this code, NoOfLink is not always the same number...
1. Why?
2. Which is the difference between "Class Name" and "micclass"?
3. In my page I have more links than NoOfLink...