Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Please let know the scripts for counting number of repeated
letters in the word. Note repeated letter should not be
count agian.

Ex: If "Hello" is my word... l is coming twice.. it should
count once and print... secong 'l' should not count again..



Please let know the scripts for counting number of repeated letters in the word. Note repeated lett..

Answer / mahesh.k

str=inputbox("enter a string")
ln=len(str)
nr=0
cnt=0
For i=1 to ln
If cnt>0 Then
nr=nr+1
End If
cnt=0
If strcomp(x,mid(str,i,1))<>0 Then
For j=i+1 to ln
If mid(str,i,1)=mid(str,j,1) then
cnt=cnt+1
x=mid(str,i,1)
end if
next
else
i=i+1

End If
Next
msgbox "no.of repeeted charecters="&nr

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

I have java based application on my computer. Can I install QTP on it? What are system requirements for installing QTP?

3 Answers  


Can you import and export data from XLS and how?

4 Answers  


can we call a test in another test? how? explain with one example?

1 Answers   iFocus,


how to write xml output check point bu useing descriptive programing .means without useing output check point

0 Answers  


we have 10 actions in out test how can we convert 9th action is main action ? how ?

5 Answers  


Hi anyone having QTP 10.0 licence or crack version pls send me in this mail id mdilipkumar04@gmail.com Regards Dilip

1 Answers  


why we use check points , In qtp we use the any check points , what r they , when and why

1 Answers   Polaris,


how do you done Data-driven test using MS-Word Instead of DataTable

3 Answers   IBM,


1)how to write test cases in test director? not go throuth requirments and plan but should be different way i need? 2)what is the mediator between qtp and application or project?

1 Answers  


after initiating one project for testing, when exacltly QTP tester role starts?

0 Answers  


What test you perform mostly? Regression or retesting in your testing process?

0 Answers  


Explain the concept of how QTP identifies object.

5 Answers   Ordain Solutions,


Categories