|
|
|
Click here to copy the following block |
Function UniqueWords(ByVal Text As String) As Collection Dim thisWord As String Dim i As Long Dim wordStart As Long Dim varWord As Variant Dim res As String
Set UniqueWords = New Collection On Error Resume Next For i = 1 To Len(Text) Select Case Asc(Mid$(Text, i, 1)) Case 65 To 90, 97 To 122 If wordStart = 0 Then wordStart = i Case 48 To 57 Case Else If wordStart Then thisWord = LCase$(Mid$(Text, wordStart, i - wordStart)) UniqueWords.Add thisWord, thisWord wordStart = 0 End If End Select Next If wordStart Then thisWord = LCase$(Mid$(Text, wordStart, i - wordStart)) UniqueWords.Add thisWord, thisWord End If End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|