New Feature Being Added to What Time Do I Leave Friday
Aug 15th, 2006 by Brian A. Thomas
I thought about the fact that some people may not have the time they worked so far in the week, just a time sheet of times in and out. I don’t want to turn this into a time clock application, but I decided that I would add a Hours Worked So Far Calculator to the Action menu. I’ll also add unpaid breaks to the Lunch window to cover up to 2 unpaid breaks (so far as the program is concerned, it will basically combine them into one Lunch/Breaks time since it isn’t a time clock, it doesn’t need those details to work the time out). After that, the program should be feature locked.
I have removed most of the bugs that I could find so far, and none of them were show stoppers, most just annoyances. For example, if the user wanted to enter a lunch and hit Save before entering anything, a box would come up telling you that something was a required field. After the user hit OK on that error box, the error box went away as it was supposed to, but the lunch window went away as well. Not a show stopping but, but a fairly big annoyance having to click the Add Lunch button again then remember to hit the time(s) in.
An example of a small bug was canceling adding a lunch would sometimes result in an error coming up that the “Index Was Out Of Bounds.” This was caused by the fact that the lunch was still be calculated, now based on a blank value (called a null), so when the program tried to split the time based on a “:” or a “.” there was none there, so there was nothing past it. It may seem complicated to the non-programmers out there, but it was a fairly easy thing… actually, I am not sure how I missed it.
Another small bug was if the user just entered a time without the “:” or “.” separator, it had problems, solved simply by having the validator make sure there was one in there. (It already was checking to see if one was there as a valid entry, it just didn’t do much with it from there… actually, those reviewing the old code will see it allowed for 1 separator or less to pass, I just changed the <= to == so it had to be 1 and adjusted the message box to have the user check to be sure a separator was there.)






