Hey, ive recently started playing around with VB and im now stuck with this loop.
Ive created an array, and when i fill in the information and press a button, i want the information in the array to appear in a listbox.
This loop will put the first bit of information in the listbox, then when i press the button again, it will put the next information in the listbox.
(remember, im new at this so you might need more of my code, just ask if you do )
Heres my code:
DIM strbookings(500) As String
DIM ARRAY_SIZE As Integer = 0
strbookings(ARRAY_SIZE) = txtName.Text & " " & txtPhone.Text & " " & txtDep.Text & " " & txtReturn.Text & " " & lblPrice.Text
ARRAY_SIZE += 1
'end of code
with this information, i just needa no a 'for loop' command so that i can keep adding information to the list box
Again, if you need more code plz ask
thanks
Ive created an array, and when i fill in the information and press a button, i want the information in the array to appear in a listbox.
This loop will put the first bit of information in the listbox, then when i press the button again, it will put the next information in the listbox.
(remember, im new at this so you might need more of my code, just ask if you do )
Heres my code:
DIM strbookings(500) As String
DIM ARRAY_SIZE As Integer = 0
strbookings(ARRAY_SIZE) = txtName.Text & " " & txtPhone.Text & " " & txtDep.Text & " " & txtReturn.Text & " " & lblPrice.Text
ARRAY_SIZE += 1
'end of code
with this information, i just needa no a 'for loop' command so that i can keep adding information to the list box
Again, if you need more code plz ask
thanks