06-05-2012, 07:14 PM
(This post was last modified: 06-05-2012, 08:08 PM by Steve.Govinakovi.)
Update2: did remove Set from "a = val5.count" and executed below queries.
1
2
3
Following values were returned:
1. 1
2. 0
3. 20
That means I have to use 3rd option
How will i get to explore all the values in val5?
Guys,
I Executed
Output = 20
As shown in attachment, window "Smat Item Collection Editor" has 20 item.
I am not sure, how to get to 16th item.
when i use
"Set s = val5(0).Item" or "val5(0)", I get the below error:
Object doesn't support this property or method: 'val5'
How do I access values in val5?
1
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").GetTOProperties
a = val5.count
Reporter.ReportEvent micdone,"Test",a
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").ChildObjects
b = val5.Count()
Reporter.ReportEvent micdone,"Test2",b
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").Object.Items
c = val5.Count()
Reporter.ReportEvent micdone,"Test3",c
Following values were returned:
1. 1
2. 0
3. 20
That means I have to use 3rd option
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").Object.Items
How will i get to explore all the values in val5?
Guys,
I Executed
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").Object.Items
c = val5.Count()
Reporter.ReportEvent micdone,"Test3",c
Output = 20
As shown in attachment, window "Smat Item Collection Editor" has 20 item.
I am not sure, how to get to 16th item.
when i use
"Set s = val5(0).Item" or "val5(0)", I get the below error:
Object doesn't support this property or method: 'val5'
How do I access values in val5?