Is there a Sub to produce String in CSV format from the current Row in SQL Cursor ?
Something like Public Sub SQLtoCSV(SQL As SQL, DBTypes As List) As String
It's not difficult to develop the Sub, but I don't want to invent a wheel
Dim csv As String = ""
For i = 0 To cur.ColumnCount - 2
csv = csv & cur.GetString2(i) & ","
Next
csv = csv & cur.GetString2(cur.ColumnCount - 1)
If cur is not global - you have to supply it to the sub and define its position to get the row. This is probably done after the SELECT query is done.
Return the csv string.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.