DataTable To CSV Don't have a clue

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2007
Posts: 6
Reputation: jricklefs is an unknown quantity at this point 
Solved Threads: 0
jricklefs jricklefs is offline Offline
Newbie Poster

DataTable To CSV Don't have a clue

 
0
  #1
Sep 6th, 2007
I've built a Datatable that reads in a text file does some manipulation on it and then It's just sitting there. I've only been doing This for a few weeks and have been Stumbling through it at best. A friend of mine sent me this and said that this should work. But I am unsure on what items need to be created and What is the "sb" in the code is supposed to be? I know this needs modification but not sure how. Any Links or help would be very helpful Thank you.




[code vb6]
Dim strContents As String
Dim objReader As StreamWriter


For Each R As DataRow In TABLES.Rows
For Each o As Object In R.ItemArray
sb.Append(o.ToString + ",")
Next
sb.Append(Environment.NewLine)
Next
[/code]
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC