# FarPoint.CalcEngine.CalcError.TryParse

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_CalcEngine_CalcError_TryParse_" data-uid="FarPoint.CalcEngine.CalcError.TryParse*">TryParse Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_CalcEngine_CalcError_TryParse_" data-uid="FarPoint.CalcEngine.CalcError.TryParse*"></a>
<h4 id="FarPoint_CalcEngine_CalcError_TryParse_System_String_FarPoint_CalcEngine_CalcError__" data-uid="FarPoint.CalcEngine.CalcError.TryParse(System.String,FarPoint.CalcEngine.CalcError@)">TryParse(string, out CalcError)</h4>
<div class="markdown level1 summary"><p>Converts a string to an error.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool TryParse(string s, out CalcError error)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function TryParse(s As String, ByRef [error] As CalcError) 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">s</span></td>
      <td><p>String to be parsed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.CalcEngine.CalcError.html">CalcError</a></td>
      <td><span class="parametername">error</span></td>
      <td><p>Error represented by the 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 the string is converted successfully; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>
</div>
