| | |
DataTable To CSV Don't have a clue
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2007
Posts: 6
Reputation:
Solved Threads: 0
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]
[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]
![]() |
Similar Threads
- converting data in a table into csv (comma separated) file (VB.NET)
- Reading CSV file into a ADO recordset (ASP.NET)
- Help C++ Assignment - NO CLUE (C++)
- html table to .csv (HTML and CSS)
- Save a text file in an csv.file with ascii? (PHP)
- hm.. wiered.. (C)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: ActiveX Problem
- Next Thread: getting type mismatch
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





