G
Guest
Hi Cor
U earlier help me with coding for removing items from a combobox based on what is contained in my array
What i wanted to ask was advise on a similar situation i have encountered. Im not sure on the best method to code this....
I have 3 comboboxes.... ComboBoxHireDate, ComboboxCarMake, ComboBoxCarRe
What i want to ensure is that if the same date and CarMake is selected as a previous Hir
then that particular CarReg is not displayed, as it has already been booked for that day
The Car Reg will therefore have to be removed from the combobox if the HireDate and CarMake is matched to an existing booking
The problem i have is that i dont know how to do this. At the moment the value selected from each combobox is added to a separate Arraylist when the user clicks ok. Would it be better to store it all in a multidimentional array
If so do u have example of how to use multidimentional array? I will need to store 3 columns in it when user clicks ok..... HireDate, CarMake, CarRegistration.
I will then need to make that when the user tries to make a new hire that if the date and Carmake is the same in the combobxes, then the previously booked registartion is removed from the combobox
Does this make sense?? Im confusing myself now
Can you give me any advise
thank yo
U earlier help me with coding for removing items from a combobox based on what is contained in my array
What i wanted to ask was advise on a similar situation i have encountered. Im not sure on the best method to code this....
I have 3 comboboxes.... ComboBoxHireDate, ComboboxCarMake, ComboBoxCarRe
What i want to ensure is that if the same date and CarMake is selected as a previous Hir
then that particular CarReg is not displayed, as it has already been booked for that day
The Car Reg will therefore have to be removed from the combobox if the HireDate and CarMake is matched to an existing booking
The problem i have is that i dont know how to do this. At the moment the value selected from each combobox is added to a separate Arraylist when the user clicks ok. Would it be better to store it all in a multidimentional array
If so do u have example of how to use multidimentional array? I will need to store 3 columns in it when user clicks ok..... HireDate, CarMake, CarRegistration.
I will then need to make that when the user tries to make a new hire that if the date and Carmake is the same in the combobxes, then the previously booked registartion is removed from the combobox
Does this make sense?? Im confusing myself now
Can you give me any advise
thank yo