• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Project Problems - Help ASP

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might consider letting us know what it is that you expect the code to do, and what it does instead.
 
mo robertson
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
mo robertson
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Do not set lab on fire. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic