Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to calculate no. of repeating characters in a a
string..please give me the code

Answer Posted / amol ghule

' A shorter version of code

Option Explicit
Dim getChar,strLen,ascChar(),CharCount,i,UniqChar,getRes
getChar="TestmyKnowledge1221"
strLen=Len(getChar)
ReDim ascChar(strLen)

For i=0 to strLen-1
ascChar(i)=Mid(getChar,i+1,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


Please Help Members By Posting Answers For Below Questions

what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

2242


How many types of Automation frameworks are there in UFT? Describe them.

1084


how did u use automating testing tools in ur job?

2032


What are the two types of repositories available, explain them?

1069


what the difference between shared repository and per action repository?

1116


explain abt dyanamic changing object with example?

2391


What are the different types of qtp test assets and their extensions?

1247


What are the technics follow in writing VB script?

2018


What is debugging? How you debug your script?

1240


Diff b/w test scenario's and test Procedures?

2174


Difference between test object and run time object?

1054


Is it possible to switch between recording modes during a test creation?

1097


What is the registration process and examination fees?

1133


How you can decide which type of object repository you have to use?

1255


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1931