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

Answer Posted / sudhanshu

Dim Str, ChkDup,i,Cnt
Str = Inputbox("Enter the String Name")
For i = 1 to Len(Str) step 1
ChkDup=mid(Str,i,1)
Cnt = split(Str,ChkDup,-1) 
msgbox Ubound(Cnt)
Next

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to do QTP Certification what is the pattern of Question paper.

1737


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

6310


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1611


How to use the object spy in quicktest professional (qtp) 8.0 version?

502


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1432






can test automation improve test effectiveness?

1479


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1480


What are the trigger events in qtp?

568


How many types of status are there?

582


Without using gui map editor we can recognize the application in winrunner ?

597


How to use checkpoints in qtp ?

576


Hi All, How to Compare two strings character by character in QTP

949


What is the basic concept of quicktest professional (qtp)?

569


How QA specialist can identify when programmatic descriptions are useful?

1962


Which scripting language used by quicktest professional (qtp)?

658