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
In qtp, explain what is crypt object
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
Discuss quicktest professional (qtp) environment?
how to disable the pop ups through QTP using a script
What is quick test pro? What is a quick test professional?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
Can you list some technologies that support qtp?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
What is the Command used to start the QTP
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
How can I import environment from a file on disk?
Can we write winrunner language i.e TSL in QTP tool?
How to record application running on the Virtual machine?
What is a Patch in QTP?