by Tom Tajic (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 28th March 2001
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
This function takes a string of items sSource separated by sItem string. It returns the number of items in list.
Dim temp As String
On Error GoTo NumberOfTextItems_error
temp = Replace(sSource, sItem, "")
NumberOfTextItems = (Len(sSource) - Len(temp)) / Len(sItem)
Exit Function
NumberOfTextItems_error:
NumberOfTextItems = 0
Exit Function
End Function
No comments have been posted about This function takes a string of items sSource separated by sItem string. It returns the number of i. Why not be the first to post a comment about This function takes a string of items sSource separated by sItem string. It returns the number of i.