VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Counts the number of words in a string - faster than previous examples seen on this site.

by James Kelly (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 11th August 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Counts the number of words in a string - faster than previous examples seen on this site.

Rate Counts the number of words in a string - faster than previous examples seen on this site.



    sText = Trim(sText)
    wA = Split(sText, " ")
    Wordcount = UBound(wA) + 1
End Function

Download this snippet    Add to My Saved Code

Counts the number of words in a string - faster than previous examples seen on this site. Comments

No comments have been posted about Counts the number of words in a string - faster than previous examples seen on this site.. Why not be the first to post a comment about Counts the number of words in a string - faster than previous examples seen on this site..

Post your comment

Subject:
Message:
0/1000 characters