title: How to remove first 2 characters in a string if it has a '-'
body: <p><code>p_officialTitle</code> in this case usually equals something like <code>&quot;1-Application&quot;</code> or <code>&quot;Application&quot;</code>. If it has a dash, it has to be removed, and the number before it needs to be removed as well. The <code>Mid</code> and <code>Find</code> methods are not working. Is there any other recommendation?</p>
  <pre><code>DIIXDAPI_INDEX_FIELD_TYPE* p_OfficialTitle = Find(param-&gt;documentIndexFieldList, D_OFFICIAL_TITLE);
                      
  //Name a Temporary CString; in that CString remove anything with a '-' --- This cleans up the naming convention
      
  CString strTemp = p_OfficialTitle-&gt;szFieldValue.Get();
      
  p_OfficialTitle-&gt;szFieldValue.Set(strTemp.Mid(strTemp.Find(_T('-'))));
  </code></pre>