title: Syntax of Split control
body: <p>I have ported an application from .NET Core to .NET Framework and it seems to go fine for everything, except a line where I have to split a string in order to fill a table with it. Then I have to erase all the spaces except one so I wrote:</p>
  <pre><code>Dim item() As String = line.Trim.Split(&quot; &quot;c, StringSplitOptions.RemoveEmptyEntries)
  </code></pre>
  <p>In NET Core no errors where found. Here I have the following error:</p>
  <pre><code>Error   BC30518 Overload resolution failed because no accessible 'Split' can be called with these arguments:
      'Public Overloads Function Split(ParamArray separator As Char()) As String()': Value of type 'StringSplitOptions' cannot be converted to 'Char'.
      'Public Overloads Function Split(separator As Char(), count As Integer) As String()': Value of type 'Char' cannot be converted to 'Char()'.
      'Public Overloads Function Split(separator As Char(), options As StringSplitOptions) As String()': Value of type 'Char' cannot be converted to 'Char()'.
      'Public Overloads Function Split(separator As String(), options As StringSplitOptions) As String()': Value of type 'Char' cannot be converted to 'String()'.    FDS2Ansys   C:\Users\Nicola\source\repos\FDS2Ansys\FDS2Ansys\Form2.vb   113 Active
  </code></pre>
  <p>I think that I have to express the space <code>&quot; &quot;c</code> as a char but I haven't understand how. Does anyone could help me solving this issue? Thanks a lot all are gonna answer me. Best regards.</p>