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


Please Help Members By Posting Answers For Below Questions

How do you create new test sets in td?

529


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1665


what is the hierarchy to use properties in descriptive programming

1494


What is quicktest professional (qtp window?

589


What is the difference between a Function and Procedure in QTP?

673






Which functionalities of QTP used in banking project?

1911


How many types of parameters are there?

537


What is expert view in qtp?

575


Explain runtime dynamic settings?

2018


What is qtpro? What is quick test pro? What is a quick test professional?

583


how to test use the quality control .how to verify the image verification

2540


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1433


How would you directly trigger javascript in a test?

1467


Explain the types of properties that quick test learns while recording?

552


Explain types of descriptive programming?

587