# FarPoint.Win.SuperEdit.GeneralFormatter.PrivConvToBinaryValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_SuperEdit_GeneralFormatter_PrivConvToBinaryValue_" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.PrivConvToBinaryValue*">PrivConvToBinaryValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_SuperEdit_GeneralFormatter_PrivConvToBinaryValue_" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.PrivConvToBinaryValue*"></a>
<h4 id="FarPoint_Win_SuperEdit_GeneralFormatter_PrivConvToBinaryValue_System_String_System_Int32_System_Object__System_Int32__System_Int32__System_Int32_" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.PrivConvToBinaryValue(System.String,System.Int32,System.Object@,System.Int32@,System.Int32@,System.Int32)">PrivConvToBinaryValue(string, int, out object, out int, out int, int)</h4>
<div class="markdown level1 summary"><p>Converts a string to a date or numeric value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual bool PrivConvToBinaryValue(string szText, int iDataLen, out object pVar, out int iDataType, out int iRetFlags, int iOptDictateDataType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function PrivConvToBinaryValue(szText As String, iDataLen As Integer, ByRef pVar As Object, ByRef iDataType As Integer, ByRef iRetFlags As Integer, iOptDictateDataType As Integer) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">szText</span></td>
      <td><p>The string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iDataLen</span></td>
      <td><p>The data length</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">pVar</span></td>
      <td><p>return value object</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iDataType</span></td>
      <td><p>return data type</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iRetFlags</span></td>
      <td><p>return flags</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iOptDictateDataType</span></td>
      <td><p>the option data type</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if successful;otherwise false</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_SuperEdit_GeneralFormatter_PrivConvToBinaryValue_" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.PrivConvToBinaryValue*"></a>
<h4 id="FarPoint_Win_SuperEdit_GeneralFormatter_PrivConvToBinaryValue_System_String_System_Int32_System_Object__System_Int32__System_Int32__System_Int32_System_IFormatProvider__System_String__" data-uid="FarPoint.Win.SuperEdit.GeneralFormatter.PrivConvToBinaryValue(System.String,System.Int32,System.Object@,System.Int32@,System.Int32@,System.Int32,System.IFormatProvider@,System.String@)">PrivConvToBinaryValue(string, int, out object, out int, out int, int, ref IFormatProvider, ref string)</h4>
<div class="markdown level1 summary"><p>Converts a string to a date or numeric value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual bool PrivConvToBinaryValue(string szText, int iDataLen, out object pVar, out int iDataType, out int iRetFlags, int iOptDictateDataType, ref IFormatProvider formatInfo, ref string formatString)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function PrivConvToBinaryValue(szText As String, iDataLen As Integer, ByRef pVar As Object, ByRef iDataType As Integer, ByRef iRetFlags As Integer, iOptDictateDataType As Integer, ByRef formatInfo As IFormatProvider, ByRef formatString As String) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">szText</span></td>
      <td><p>The string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iDataLen</span></td>
      <td><p>The data length</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">pVar</span></td>
      <td><p>return value object</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iDataType</span></td>
      <td><p>return data type</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iRetFlags</span></td>
      <td><p>return flags</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iOptDictateDataType</span></td>
      <td><p>the option data type</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></td>
      <td><span class="parametername">formatInfo</span></td>
      <td><p>the format information</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">formatString</span></td>
      <td><p>the format string</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if successful;otherwise false</p>
</td>
    </tr>
  </tbody>
</table>
</div>
