Results 1 to 1 of 1
2014-09-03, 02:35 #1
- Join Date
- Nov 2008
- England, Yate, Bristol
- Thanked 0 Times in 0 Posts
Visual Studio 12 express export text to csv file
I am stuck. I am trying to export text from form to a csv file.
Below is a part of the code I am working on, but I am now quite lost.
Thanks for any help you can give me.
Public Class Form1
Public names(103, 1) As String
Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboNameList.SelectedIndexChanged
For i = 0 To 103
If cboNameList.Text = names(i, 0) Then
lblDfE.Text = names(i, 1)
lblRef.Text = "ACC-" + lblDfE.Text + "-" + lblToday.Text + "-" + lblYourRef.Text
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
lblToday.Text = Format(Now, "dd-MM-yy")
SchoolListArray() 'initialise the array
Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click
'I've put the data I want to export in a list box as follows