how to get the object count ?????????

Answer Posted / nagk24

cnt=0
Set d=description.Create
d("micclass").value="WinEdit"
Set a=window("text:=Flight Reservation").ChildObjects(d)
For i=0 to a.count-1
cnt=cnt+1

Next
msgbox cnt

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

576


Does quicktest professional (qtp) is unicode compatible?

540


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1409


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2801


What are the features supported by UFT?

673






How to data driven test for Win objects in QTP ?

1477


How often were they executed?

2039


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1382


How to add verification steps to tests?

9130


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1446


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

563


What is checkpoints for qtp?

536


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1441


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1353


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1864