>
>Have you considered that there are years with 53 weeks?!
>
I know there are some years where there would be 53 weeks but I (my business logic) ignores those.
>>I wanted the speed because (I think) that the user will be frustrated if they have to wait (even 2 seconds) after clicking on the label. So far, in my tests, on my PC, it seems to be very fast, not even a second.
>
>Not even a second? The function should be less than 10 milliseconds! :)
Yes, you are right. I was just being paranoid <g>. But, in the process, I learned something.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham