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
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
How many add-ins comes by default with quicktest professional (qtp)?
What are the types of object repositories? Which one is you using?
What is the differences between image check point and bit map check point?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also
In what occasion we can specify global sheet and action sheet?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?
Have you faced any problems with object repository?
What is fragmentation and paging?
There is an excel file of 1 to 100 sheets how you will iterate through it?
How are actions and functions different in QTP?
How to build scripts that access data from external sources?
how to write xml output check point bu useing descriptive programing .means without useing output check point
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.