02-27-2008, 01:52 AM
Hi there,
I have a chunck of codes that counting the children of a webtable
Here is my code:
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
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