how to calculate no. of repeating characters in a a
string..please give me the code
Answer Posted / amol ghule
' A shorter version of code
Option Explicit
Dim getChar,strLen,ascChar(),CharCount,i,UniqChar,getRes
getChar="TestmyKnowledge1221"
strLen=Len(getChar)
ReDim ascChar(strLen)
For i=0 to strLen-1
ascChar(i)=Mid(getChar,i+1,1)
getRes=Split(getChar,ascChar(i),-1,1)
If ubound(getRes)=1 Then
UniqChar=UniqChar&" "&ascChar(i)
End If
Next
msgbox UniqChar
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a Function and Action in QTP?
Explain advantages and disadvantages kdf?
How to delete an object from the object repository?
Explain how you can find the absolute value of the number in qtp?
Give the syntax to import/export xls into qtp.
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
In qtp, explain what is crypt object
How many types of actions are there in quicktest professional?
What are the various types of Actions in UFT?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
How to modify the text checkpoint?
How to use the object spy in quicktest professional (qtp) 8.0 version?
What is the quicktest professional (qtp) testing process?
What is the use of an object spy tool in qtp?
How to open a new test using quicktest professional (qtp)?