how to calculate no. of repeating characters in a a
string..please give me the code

Answer Posted / devi

The above script is correct. Apart from that script i have
one more script for finding no. of repeated characters in a
string

Suppose we have to know how many "s" are there in mississipi

code follows:

mystring = "mississipi"
charcount=len(mystring)-len(replace("s",""))
msgbox charcount

then output is : 4

Is This Answer Correct ?    6 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is impact analysis on regression testing?

2046


How do you delete unwanted results in qtp?

604


What is QTP’s model for test creation?

675


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1435


What are the recording modes in wave event?

1536






How you can find length of array in qtp?

542


How to use Environment parameterization? Explain with an example.

1481


can test automation improve test effectiveness?

1486


What is standalone database?

1745


Explain the qtp test phases.

619


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1521


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

594


how will load the object during runtime?

1579


How to remove associated function library?

558


How to import a test case present in ".xls" file to TD under a Test set?

748