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 / 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 |
Hello Guys, Can anybody Explain me about Automation framework?? and how can we prepareAutomation Framework using QTP
What is the difference between QTP 8.2 and QTP 9.2
How to run a test using quicktest professional?
How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field?
Can I compare two DataBases using QTP ?
Suppose I want fail that check point? How can you do that?
There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?
Test cases for Traffic Signals
what is the general issues faced while using automation tool Qtp9.0
What does Reporter.Reortevent2 does?
What are the key elements available in test result window?
What is an object repository?