Fname Lname phone email
My next step is copy back those information to textboxes ( in same order) for editing. Here is my code; and the error VB return is "Index was outside the bounds of the array."
Private Sub btnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEdit.Click
Dim sIndex As String
sIndex = lstTable.SelectedIndex
Dim eArray() As String
eArray = sIndex.Split(" ")
txtFirstName.Text = eArray(0)
txtLastnName.Text = eArray(1)
txtEmail.Text = eArray(2)
txtPhone.Text = eArray(3)
txtMajor.Text = eArray(4)
txtGpa.Text = eArray(5)
End Sub
Thank you all for your help!!

New Topic/Question
Reply




MultiQuote




|