Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with getting the number of children
#1
Not Solved
Hi there,

I have a chunck of codes that counting the children of a webtable
Here is my code:

Code:
Dim obj_ChkDesc
Set obj_ChkDesc = Description.Create()
obj_ChkDesc("class").Value = "datatab_metadata_node"
obj_ChkDesc("innertext").Value = "Accounts"

Dim dataPane
Set dataPane= Browser("title:=InfoView").Page("title:=InfoView").Frame("title:=Multi-Dimensional Designer").WebTable( "innertext:=AccountsYearMarketProductScenario")
Dim allNodes
Set allNodes= dataPane.ChildObjects(obj_ChkDesc)
Dim num
num =allNodes.Count()
MsgBox( num)

The MsgBox show me the num is "0" However, I do expect the num to be "1"

Does any one know what is going on here?

Many thanks

Carol
Reply


Messages In This Thread
problem with getting the number of children - by Carol - 02-27-2008, 01:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Random Number generator and verification problem jinnah 4 10,486 09-28-2012, 04:03 AM
Last Post: jinnah
  Count the number of 3 number appers between 0-3333 SaranKumarV 1 3,884 09-20-2010, 06:32 PM
Last Post: rdemers25

Forum Jump:


Users browsing this thread: 4 Guest(s)