Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetTOProperties count
#2
Not Solved
Update2: did remove Set from "a = val5.count" and executed below queries.
1
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").GetTOProperties
a = val5.count
Reporter.ReportEvent micdone,"Test",a
2
Code:
Set val5 = SwfWindow("Production Analyst").SwfObject("toolBar").ChildObjects
b = val5.Count()
Reporter.ReportEvent micdone,"Test2",b
3
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?
Reply


Messages In This Thread
GetTOProperties count - by Steve.Govinakovi - 06-05-2012, 06:13 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-05-2012, 07:14 PM
RE: GetTOProperties count - by supputuri - 06-05-2012, 09:33 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-06-2012, 05:19 AM
RE: GetTOProperties count - by supputuri - 06-06-2012, 10:14 AM
RE: GetTOProperties count - by Steve.Govinakovi - 06-06-2012, 06:03 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-07-2012, 04:56 PM
RE: GetTOProperties count - by supputuri - 06-07-2012, 06:38 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-08-2012, 08:04 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-10-2012, 10:12 PM
RE: GetTOProperties count - by Anamika sinha - 04-15-2014, 05:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Diff. between page checkpoint link count and childobj count anemuday 0 2,245 07-20-2008, 10:11 PM
Last Post: anemuday
  Using GetTOProperties & Count function Akhila 1 3,704 07-07-2008, 11:44 AM
Last Post: surya_7mar

Forum Jump:


Users browsing this thread: 4 Guest(s)