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
Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture
What are the system database in sql server 2008?
How to provide default values to function parameters?
How to drop an existing table with "drop table" statements in ms sql server?
What is microsoft sql server?
How to view existing indexes on an given table using sys.indexes?
What is side by side migration in sql server?
Are connections to sql server encrypted?
Can you please differentiate between a primary key and a unique key?
Explain the third normal form(3nf)?
Explain what is raid and what are different types of raid levels?
What is #temp and @table variable in SQL server?
Explain left outer join and right outer join?
How is a full-text index updated?
What is the stuff and how does it differ from the replace function?