>>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
Gregory