how to calculate no. of repeating characters in a a
string..please give me the code
Answer Posted / arunkumar vikram r k
Hi Amol, a small change in your script and the repeated characters can be printed or counted
Option Explicit
Dim getChar,strLen,ascChar(),CharCount,i,RepChar,getRes
getChar="VBSsccrript"
strLen=Len(getChar)
ReDim ascChar(strLen)
For i=1 to strLen
ascChar(i)=Mid(getChar,i,1)
Next
For i=1 to strLen
getRes=Split(getChar,ascChar(i),-1,1)
If ubound(getRes)=2 Then
RepChar=RepChar&" "&ascChar(i)
End If
Next
msgbox RepChar
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Generic function to search for the unique link in webtable and click on it
What is the limitation to XML Checkpoints?
describe some problems that u had with automating testing tool?
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
Both static and dynamic arrays are handled by the vb script. Is it true?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
Explain advantages and disadvantages kdf?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
Tell me one scenario, the complex functionality you have automated in your project?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
Discuss the QTP Environment?
What is checkpoints for quicktest professional (qtp)?
Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
how can we compare descriptive programing with a regular expression