Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP inlist() in c#
Message
De
29/01/2013 12:55:56
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01320903
Message ID:
01564549
Vues:
54
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform