title: how to find the number sentences in a string
body: <p>How to find the number for sentences in a String data ? </p>
  
  <p>Edit: Ok I came up with this after following Wipqozn's method</p>
  
  <pre><code>Dim str As String = "This . is .  a . text."
  Dim maxCount As Integer = str.Count
  Dim intSent As Integer = 1
  Dim singleChar As Char
  
  For i = 1 To maxCount
      singleChar = str.Chars(i)          ' Getting an error here
      If singleChar = "." Then
          intSent = intSent + 1
      End If
  Next
  
  MsgBox("Number of sentence = " &amp; intSent)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/DAX7s.jpg" alt="enter image description here"></p>