G
Guest
Hi
I have an 2 arraylist that contains a number of strings
What i want to do is to remove the items from arraylist1 if they exist in arraylist2. Can anyone help me do this?
I currently have code that removes items from a combobox based on an arraylists values(which was kindly provided by Cor). And so i jus need to modify this slightly...
While reader3.Rea
'place an array here of all the caravan invs availbl
Arraylist1.Add(reader3.GetSqlString(0)
For i = 0 To Arraylist2.Count -
'remove the inventory numbers that are in the array of previously booked cara'
Dim i As Intege
Dim AllBookedI As Integer = Combobox1.FindStringExact(Trim(Arraylist2(i))
'If we find it y is the index of the combobox row else it is -
If AllBookedI <> -1 The
CBoxCaraInv.Items.RemoveAt(AllBookedI
End I
Nex
Any help would be appreciated
I have an 2 arraylist that contains a number of strings
What i want to do is to remove the items from arraylist1 if they exist in arraylist2. Can anyone help me do this?
I currently have code that removes items from a combobox based on an arraylists values(which was kindly provided by Cor). And so i jus need to modify this slightly...
While reader3.Rea
'place an array here of all the caravan invs availbl
Arraylist1.Add(reader3.GetSqlString(0)
For i = 0 To Arraylist2.Count -
'remove the inventory numbers that are in the array of previously booked cara'
Dim i As Intege
Dim AllBookedI As Integer = Combobox1.FindStringExact(Trim(Arraylist2(i))
'If we find it y is the index of the combobox row else it is -
If AllBookedI <> -1 The
CBoxCaraInv.Items.RemoveAt(AllBookedI
End I
Nex
Any help would be appreciated