title: ASP.NET How to convert array objects converted to string back to the array
body: <p>Hey I have the following function,</p>
  
  <pre><code>        Dim results() As Object = Me.Invoke("webdirect", New Object() {Company, LocationCode, CustomerNumber, OrderNumber, OrderRef, OrderDate, WebLines})
          o_Company = CType(results(1),System.Nullable(Of Integer))
          o_LocationCode = CType(results(2),String)
          o_CustomerNumber = CType(results(3),String)
          o_OrderNumber = CType(results(4),String)
          o_OrderStatus = CType(results(5),String)
          o_OrdDescrip = CType(results(6),String)
          RespLines = CType(results(7),webdirect_RespLinesRow())
          Return CType(results(0),String)
  </code></pre>
  
  <p>So the return type of this function is a string, but I would like to get it back to its original form so I can access the individual sections i.e. o_LocationCode,o_CustomerNumber, etc how can I do that ?</p>
  
  <p>Further Edit </p>
  
  <p>Entire functions looks like this</p>
  
  <pre><code>Public Function webdirect(&lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByVal Company As System.Nullable(Of Integer), &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByVal LocationCode As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByVal CustomerNumber As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByVal OrderNumber As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByVal OrderRef As String, &lt;System.Xml.Serialization.XmlElementAttribute(DataType:="date", IsNullable:=true)&gt; ByVal OrderDate As System.Nullable(Of Date), &lt;System.Xml.Serialization.XmlArrayAttribute(IsNullable:=true), System.Xml.Serialization.XmlArrayItemAttribute("WebLinesRow", IsNullable:=false)&gt; ByVal WebLines() As webdirect_WebLinesRow, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByRef o_Company As System.Nullable(Of Integer), &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByRef o_LocationCode As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByRef o_CustomerNumber As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByRef o_OrderNumber As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByRef o_OrderStatus As String, &lt;System.Xml.Serialization.XmlElementAttribute(IsNullable:=true)&gt; ByRef o_OrdDescrip As String, &lt;System.Xml.Serialization.XmlArrayAttribute(IsNullable:=true), System.Xml.Serialization.XmlArrayItemAttribute("RespLinesRow", IsNullable:=false)&gt; ByRef RespLines() As webdirect_RespLinesRow) As &lt;System.Xml.Serialization.XmlElementAttribute("result", IsNullable:=true)&gt; String
  
  Dim results() As Object = Me.Invoke("webdirect", New Object() {Company, LocationCode, CustomerNumber, OrderNumber, OrderRef, OrderDate, WebLines})
  o_Company = CType(results(1),System.Nullable(Of Integer))
  o_LocationCode = CType(results(2),String)
              o_CustomerNumber = CType(results(3),String)
              o_OrderNumber = CType(results(4),String)
              o_OrderStatus = CType(results(5),String)
              o_OrdDescrip = CType(results(6),String)
              RespLines = CType(results(7),webdirect_RespLinesRow())
              Return CType(results(0),String)
          End Function
  </code></pre>
  
  <p>Called like this</p>
  
  <pre><code>        Dim returnArray As String
  
      returnArray = client.webdirect(10, "123", "123", "123", "147", "2011-11-1", webLinesArray, 10, "", "", "", "", "", webRespArray)
  </code></pre>
  
  <p>No errors on run time but the string seems to be just blank, thats why i was wondering how I convert the string back to the array so I can access the individual elements.</p>