See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.
Dim sr As StreamWriter Dim strDelimiterType As String Sub Export() strFileName = "test.txt" strDelimiterType = "," 'create streamwriter to open and write contents from datagrid sr = File.CreateText(txtFilePath.Text & "\" & strFileName) 'creat variable to hold delimiter Dim strDelimiter As String = strDelimiterType 'create variable to hold total number of columns Dim intColumnCount As Integer = dgPP.Columns.Count - 1 'create a variable to hold the row data Dim strRowData As String = "" 'get rest of data to file For intX As Integer = 0 To dgPP.Rows.Count - 1 'reset strRowData strRowData = "" For intRowData As Integer = 0 To intColumnCount strRowData += Replace(dgPP.Rows(intX).Cells(intRowData).Value, strDelimiter, "") & _ IIf(intRowData < intColumnCount, strDelimiter, "") Next intRowData 'write row to file sr.WriteLine(strRowData) Next intX 'close streamwriter sr.Close() End Sub
|Render HTML in a desktop app, not using a browser||4||55|
|VB.Net - CSV to Oracle table||4||30|
|Changing the Source of an ADO Recordset while it's open||4||23|
|Help with comparing 2 xml files and retreiving all records in file2 where values in NSN field are available in File1 using VB.NET||6||25|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
19 Experts available now in Live!