Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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")
For i=1 to ln
If cnt>0 Then
End If
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
end if

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

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

what is supply chain management?

0 Answers   ITC Infotech,

when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  

How to capture the Check point Value into a variable?

2 Answers  

How to open an application through scripting?

11 Answers  

In an Excel sheet take two fields as agentname and password and type some valid agentname and that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.

3 Answers  

How to open any application during Scripting in QTP?

7 Answers   Celgene, IBM,

in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,

How to use the Object spy in QTP 8.0 version?

2 Answers  

Give a comment on Regular Expressions using QTP?

4 Answers  

What is quick test pro?

0 Answers  

what is descriptive programming in QTP? How can be done?

19 Answers   Accenture,

i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 should not take spectial should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

0 Answers   IBM,