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 and what are different types of raid configurations? : Sql server database administration
What are different types of table joins?
How to deploy the Report?
What are data regions?
How to add more data to the testing table in ms sql server?
What is row-level compre?
What is an expensive query?
What is normalization 1nf 2nf 3nf?
What is Dependency Injection and provide example?
Explain what role entity and relationship play in an ER diagram.
Difference between aggregate functions of sql?
What is difference between views and tables?
What does it mean to normalize data?
Can you explain what are commit and rollback in sql?
Can group functions be used in the order by clause in ms sql server?