Results 1 to 10 of 10

Thread: GAH!!!! Too much tinkering and I've broke it. Help!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hi mate,

    thanks for that, I missed the 4..30 bit -

    I'd liek to use functions as not used them before but jsut gettign to grips with them, the indent was ugly. I still havent found my'way' of doing it yet.

    was there anything else you noticed?

    Also, I think I might have to change the error handling. if you type in 36 36 36 (it will first say there are 0 days in this month and then carry out checking the numbers after. the logic would be better to check the month first i think.
    http://www.webdesignprofessionals.co.uk (any criticism is welcome!)

  2. #2
    GAH!!! the 4..30: doesn't work - I get an error message?!?!?
    http://www.webdesignprofessionals.co.uk (any criticism is welcome!)

  3. #3
    Because you have another case with same range included (The error message propably tells that). You should use "else" in this case, or split 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,24,25 ,26,27,28,29,30 in smaller parts like 4..20, 24..30

  4. #4
    of course, i was having a 'special' moment. wll work on it some more later to try and improve it.
    http://www.webdesignprofessionals.co.uk (any criticism is welcome!)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •