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

Answer Posted / venky

mystring = "mississipi"
slen=Len(mystring)
msgbox slen
ws=Len(replace(Mystring,"s",""))
msgbox ws
charcount=Len(mystring)-Len(replace(Mystring,"s",""))
msgbox charcount

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?

1393


Output values? i want a practical example

1309


Can you list some technologies that support qtp?

550


What is text check point and text area check point?

604


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

919






supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1358


Explain about the quicktest professional (qtp) automation object model?

562


1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1430


Mention the test steps of qtp.

540


Why is Client side image is preferred over server side image?

1439


how to create flat file datasubmission in qtp

1900


what are the challenges you have faced while testing web based application using the automation tools ?

596


Explain how to use QTP to check broken links on a page?

583


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1604


write script for bitmap image?

1538