how to calculate no. of repeating characters in a a
string..please give me the code
Answer Posted / vinod
str = "abdabcefghefg"
J=0
K=1
z=""
For i=1 to len(str)
x= mid(str,i,1)
If InStr (1, z,x,1) Then
Else
z=z&x
'msgbox z
End If
Next
For i=1 to len(z)
x= mid(z,i,1)
y = split (str,x)
If Ubound (y)>1 Then
varCount=varCount+1
End If
Next
msgbox varCount
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to customize qtp?
Write a script to customize the test results in PDF and HTML format.
QTP script is not working on other's machine..
Define object spy ?
Explain different types of checkpoints?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
Why bpt?
What is different command used in command Prompt while using QTP?
what type of automation is follwed in the project?
Explain quicktest professional testing process?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
How to test the login page in different ways in automation testing and i need code?
How many types of recording modes are there?
what testplan contents and what test strategy contents,what is the diff b/w them
what is run action?