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..
Answer Posted / 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 View All Answers
What test you perform mostly? Regression or retesting in your testing process?
banking project description for software tester
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
How to open a new test using quicktest professional?
Tell me about your project? please help me how to tell about insurance project
in a web page How to check and display a particular word from a paragraph?
In qtp, explain what is qrs file?
How do you check ticket cost and ticket number in flight application?
how will load the object during runtime?
If the objects hierarchy is changing from build to build, then how you will handle that condition?
can test automation improve test effectiveness?
What are the differences between table and db checkpoints?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
Explain about business process component? types and usage?