ok, let me explain first, what im trying to achive. i currently have a GUI window called 'Ossian' and one class called 'Holiday' basically i've got 7 textboxes, and an add button. Once u fill in all 7 textboxes with the info of the holiday you wish to add, you click the 'add' button, it adds that holiday to an array. the class holds all the varible values from the textboxes it has recived so they can be used around my program. however i have ran into a few problems doing this. maybe someone could point me in the correct direction. thanks alot toothpick here is my code i did myself, it runs but doesnt do as i require, im doing something wrong. ALL IN BOLD I PUT IN MANUALLY, SO THATS THE CODE TO CHECK, SUNONESTUDIO DID THE REST KINDOF
[ April 29, 2004: Message edited by: mo robertson ] [ April 29, 2004: Message edited by: mo robertson ] [ April 29, 2004: Message edited by: mo robertson ]
author and iconoclast
this is a travel holiday package, which allows the user to input holidays, which are stored in an array then later saved to file. (the saved to file will be worryed about later) just now all im after is allowing the holidays to be stored in the array.
ok lets break this down a little, lets start by first adding a holiday to an array. im using textboxes for the input and a command button to perform the add action. Add A Holiday To Array Destination [_____________________] Airport [_____________________] Accomodation [_____________________] Holiday_ref_no [_____________________] Departure_date [_____________________] Length_stay [_____________________] Price [_____________________] [ ADD ]
once you have filled in the fields it adds them details you input in them textboxes, to an array, where it holds that holiday. the array should allow me to add up to 50 holidays. if i add more than 50 it displays an error. i added labels below the textboxes ( they will not be there in the final program) to display the holiday i added. hope this helped understand what i mean [ April 29, 2004: Message edited by: mo robertson ] [ April 29, 2004: Message edited by: mo robertson ]
Joined: Mar 29, 2004
ok i found out why, it was because i was clearing the text fields before it. that was having some effect. however my array is letting me add as many holidays as i want, it should however max out at 50