Results 1 to 14 of 14

Thread: [RESOLVED] How To Make DataTable Static

Threaded View

  1. #11

    Thread Starter
    Lively Member
    Join Date
    Mar 2012
    Posts
    87

    Re: How To Make DataTable Static

    Apology, here's the function that's throwing the exception. The dt is already defined as a parameter.

    Code:
    Private Function ConvertDataToString(ByVal dt As DataTable) As String
        Dim conversion As String = String.Empty
    
        Using writer As IO.TextWriter = New IO.StringWriter()
            dt.WriteXml(writer, XmlWriteMode.WriteSchema)
            conversion = writer.ToString()
        End Using
    
        Return conversion
    End Function
    Last edited by 1369Times; May 24th, 2017 at 06:36 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width