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 does set rowcount do?
What stored by the msdb?
What are the types of processing and explain each? : sql server analysis services, ssas
Describe the functionalities that views support.
What is extended stored procedures?
What is the difference between lock, block and deadlock? : sql server database administration
How to test values returned by a subquery with the in operator?
List down some advantages of sql stored procedure?
What is a virtual table in sql?
Is it safe to delete log files?
Explain trigger and its types?
How do I create a stored procedure in dbml?
What is the difference between migration and upgradation in sql server?
What is index in an assignment?
What is side by side migration in sql server?