I previously asked a question about my meeting planner app, and how to delete a specific entry in the array. Someone had the interesting suggestion of using a ArrayList, instead of a normal array. I am attempting to learn ArrayList, but to no good result. I can't even get the ToString method to work correctly to write what I want it to into a text file.
I have three important fields:
- Day is whatever is monthcalendar1.selectionend
- ToD is whatever is selected in a combo box of times (cmbTime.text)
- Appointment is whatever is in the textbox field for the appointment description (txtAPPT.text)
My plan is to have each of those three fields to have their own entry in the ArrayList, but when it is saved to text file, those three fields are comma delimited to a line for each appointment. Of course when the text is loaded, it will have to be converted back. Can anyone point me in the right direction or have any other method of going about this with the ArrayList?