Computer Science Canada i don' even know what to call this |
Author: | ecookman [ Wed Mar 25, 2009 10:30 am ] | ||
Post subject: | i don' even know what to call this | ||
well, the curse of the countdown timer has come to haunt me again T_T my friend wants me to make another one....except the user of the program enters the time to countdown time to, instead of it being a fixed time and date
so my problem is in the first 3 lines...how can i get the entered info to be used as the date and time... ---------------------------------------------------edit------------------------------------------- typos |
Author: | SNIPERDUDE [ Wed Mar 25, 2009 12:13 pm ] | ||
Post subject: | Re: i don' even know what to call this | ||
You can approach that part is several ways: For one you can do it as you have, all in one string. Or you can break it up into its elements, and ask for each part separately (ex: "Enter the Month: "). Although breaking it up requires less string manipulation (although nothing too much), it also allows for easier error checking. So you can easily have a loop for each section to make sure they enter a valid number before moving on. Just an idea. Ex:
But to be more specific, does the user enter a time for it to count down, or a date (and time) to count down to? |
Author: | ecookman [ Wed Mar 25, 2009 4:24 pm ] |
Post subject: | RE:i don\' even know what to call this |
the Time.DateSec function needs to have the date and then the time....and that part that you put above....is way over my head...i just know the basics |