title: (VB.NET Word.Application) Reading text from cursor didn't work correctly
body: <p>I'm trying to write a sub that msgbox the word from the current cursor to the previous seperator (or punctuation, control) in a word document. Here's what I have written in that function.</p>
  
  <blockquote>
  <pre><code>    Dim mStart = mwrdApp.Selection.Range.Start - 1 ' mwrdApp is current word application in my program
      Dim mEnd = mStart
      Dim mText = mwrdDoc.Range.Text ' mwrdDoc is current document opened in mwrdApp
      Dim mWord = ""
      Do
          If mStart = -1 Then Exit Do
          If Char.IsSeparator(mText(mStart)) Or Char.IsPunctuation(mText(mStart)) Or Char.IsControl(mText(mStart)) Then Exit Do
          mWord = mText(mStart) + mWord
          mStart -= 1
      Loop
      MsgBox(mWord)
  </code></pre>
  </blockquote>
  
  <p><a href="http://i.stack.imgur.com/ko1zg.png" rel="nofollow">Here's the image of the document that I'm testing, with the position of the cursor</a></p>
  
  <p>However, the msgbox shown "Test" instead of "TestingStrin".</p>
  
  <p>I don't know why this happened. Can anyone explain this to me? And is there a way to fix this? Thanks in advance.</p>
  
  <p>PS:
  It turned out that the value of <code>mStart</code> is <code>75</code> and the length of <code>mText</code> is <code>86</code>, which is weird (<code>mStart</code> should equal to length of <code>mText</code> minus <code>1</code>)
  Also, <a href="http://i.stack.imgur.com/9Bp72.png" rel="nofollow">here's the value of mText</a>. Is the "weird character" is the format of table?</p>