A Cool Site for learning different

Sunday, December 09, 2012

Count Words In String

  1. Dim ContentString As String = "Arrested Development"
  2. Dim WordCounter As Integer = UBound(Split(Trim(Replace(ContentString, Space(2), Space(1))))) + 1