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
What is the quicktest professional testing process?
What are benefits of qtp?
Will down time for server and content maintenance/upgrades be allowed? how much?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
in my application,validation message has in japanise language.how to validate this message is appears properly or not
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?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
what are the challenges you have faced while testing web based application using the automation tools ?
Explain the concept of object repository & how qtp recognizes objects?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
How to use reporter.report event in qtp ?
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
What is difference between design time and run time data table?