how to calculate no. of repeating characters in a a
string..please give me the code
Answer Posted / amol ghule
Option Explicit
Dim getChar,strLen,ascChar(),CharCount,i,UniqChar,getRes
getChar="VBSsccrript"
strLen=Len(getChar)
ReDim ascChar(strLen)
For i=0 to strLen-1
ascChar(i)=Mid(getChar,i+1,1)
Next
For i=0 to strLen-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
How to find the difference between 2 dates in qtp?
What is a reusable action?
What is object repository in qtp?
What is the difference between the keyword view and expert view?
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
Explain the check points in quicktest professional?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
Describe how Smart Identification is used
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
give me the code to save all messages of inbox of gmail into a folder and notepad
regular expression in qtp standar check point for months from accepting months from january to december only
What test cases can you automate using QTP?
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
Why script error occur in between recording in qtp?
How many number of actions possible in qtp?