Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP inlist() in c#
Message
From
29/01/2013 12:55:56
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01320903
Message ID:
01564549
Views:
53
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform