>>>I find it nice also. But for some people it is way too complicated - rolling my eyes ;)
>>
>>It is if you throw Math Sign into the picture.
>
>Math.Sign() is as basic or elementary as it can get
>
>in vfp the code would be
>
>d1 = datetime()
>d2 = datetime()
>
>result = sign(d1 - d2)
>do case
>case result > 0
> && d1 > d2
>
>case result == 0
> && d1 == d2
>
>otherwise
> && d1 < d2
>endcase
>
>
>I have the impression you don't spend any time to understand the basics, nor do you spend time/ figuring out how to solve a problem
>
>Cannot say JB is wrong when he writes - if you did not see it in a blog, you don't know
I didn't say I don't understand your code, I said I do not find it simpler than my solution. Don't presume anything and don't join JB in his bad words.
Also, why do I need to switch from one working solution to the solution in 20 more lines?
If it's not broken, fix it until it is.
My Blog