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 |
Can we record using all the modes in a single script? Explanation with example is appreciated
QTP is used better in which type of application Web based application or desktop application
suppose i give valid user id and password to open an web base application on qtp.how qtp will know itis a valid user id and password
What are the types of Object Repository’s in QTP?
How to define array in qtp?
Pls explain me the difference between ........ Description.Create and CreateObject
after initiating one project for testing, when exacltly QTP tester role starts?
In a web page, one web table is present which is dynamic. In that table one of the column has links with the same inner text. write a script so that i need to click the third link.
Get the count of files of similar types from a folder.
When and why do you use "OPTION EXPLICIT" in VB Script. Is there any online help or something to learn the script for Beginners?
what is the framework followed by ur company in qtp
how to merge object repositories in qtp for n different applications