How can count the string ?
for ex: If i have string like 'bhaskar' then i need like
b:1
h:1
a:2
s:1
k:1
r:1
please give any idea on that
Answer Posted / major
Private Sub Form_Load()
Dim Str As String
Str = "Bhaskar"
Fetch Str
End Sub
Public Sub Fetch(Str As String)
Dim StrNew As String
StrVal1 = Str: StrNew = Str
While StrNew <> ""
StrNew = Replace(Str, Mid(Str, 1, 1), "")
Debug.Print Mid(Str, 1, 1) & Len(Str) - Len(StrNew)
Str = StrNew
Wend
End Sub
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is raid? : SQL Server Architecture
How do I find information about the install locations for the various instances running on a computer?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
What is the partitioning method?
Explain difference between cross join and full outer join?
What is autocommit mode in sql server?
What is the difference between rank and dense_rank?
How can sql server instances be hidden? : sql server security
application server is slow what may be the problem
What are the basic features of a trigger in ms sql server?
What do you mean by an execution plan? Why is it used?
Differentiate between sql temp table vs table variable?
How to defragment indexes with alter index ... Reorganize?
What is the default server name for sql server?
Does partitioning ssd reduce performance?