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 / pvr
Dim str,ln,i,md,ub,sp
str="apple"
ln=len(str)
for i=1 to ln
md=mid(str,i,1)
sp=split(str,md)
ub=ubound(sp)
if ub=i+1 then
msgbox md &vbnewline& "contain more than one character in
given string"
else
msgbox md &vbnewline& "contain only one character in given
string"
end if
next
If any modifications are there please let me know....
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How do you create new test sets in td?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
what is the hierarchy to use properties in descriptive programming
What is quicktest professional (qtp window?
What is the difference between a Function and Procedure in QTP?
Which functionalities of QTP used in banking project?
How many types of parameters are there?
What is expert view in qtp?
Explain runtime dynamic settings?
What is qtpro? What is quick test pro? What is a quick test professional?
how to test use the quality control .how to verify the image verification
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
How would you directly trigger javascript in a test?
Explain the types of properties that quick test learns while recording?
Explain types of descriptive programming?