Public AtendanceName() As String 'Array to store names
Public ix As Integer
Public i As Integer
Private Sub btnSave_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles btnSave.Click
'Loop to load names into Array
ix = 1
i = 0
For i = 0 To ix = 1
AtendanceName(i x) = txtAname.Text
ix = ix + 1
i = i + 1
Next i
Please Help me. This is what i think but it doesnt work.
I want the loop to load a different tname in the array with each click of the btnSave.
After that I want to display all the loaded names inside a richtextbox with a loop.
I imagine it will work the same as the load.
I just cant get it to work. I'll propably laugh at the sullotion but i cant seem to see it.
Thank you all!! :confused:
Public ix As Integer
Public i As Integer
Private Sub btnSave_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles btnSave.Click
'Loop to load names into Array
ix = 1
i = 0
For i = 0 To ix = 1
AtendanceName(i x) = txtAname.Text
ix = ix + 1
i = i + 1
Next i
Please Help me. This is what i think but it doesnt work.
I want the loop to load a different tname in the array with each click of the btnSave.
After that I want to display all the loaded names inside a richtextbox with a loop.
I imagine it will work the same as the load.
I just cant get it to work. I'll propably laugh at the sullotion but i cant seem to see it.
Thank you all!! :confused:
Comment