ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software >> Testing >> Automation-Testing >> QTP
 
 
 
Question
1.  I have asked the same question for the third time, but 
i am getting wrong answers.
Pls give me the script to count the number of edit boxes or 
checkboxes in an windows application screen.
In windows application childobject is not working, anyone 
very urgent
 Question Submitted By :: Subaash Patil
I also faced this Question!!     Rank Answer Posted By  
 
Answer
i am using 9.5. for u i giving one more solution verify it.

Dim oDesc
Set oDesc=Description.Create()
oDesc("micclass").value="WinEdit"
iObjCount=0
For iIndex=0 To 100
If Dialog("regexpwndtitle:=Login").WinEdit
(oDesc,"index:="&iIndex).Exist(2) Then
iObjCount=iObjCount+1
Else
 Exit For
End If
Next
msgbox iObjCount
  
iObjCount gives editboxes count. u can keep what ever value 
u want for ending of for loop.But it must be greater than 
equal value,then only u can get correct number.
 
0
Hemakumar.m
 
View All Answers
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com