Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After January 1st
Message
De
04/01/2000 07:31:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00308678
Message ID:
00312261
Vues:
50
>>Absolutely, But only in cases where readability is not too much hurt
>
>Lets see...
>
>This
>
>do case
>case mod(nYear, 400) = 0
> lLeapYear = .t.
>case mod(nYear, 100) = 0
> lLeapYear = .f.
>case mod(nYear, 4) = 0
> lLeapYear = .t.
>otherwise
> lLeapYear = .f.
>endcase
>
>Or This...
>
>Leapyear = MOD(nYear,4)=0 AND (MOD(nYear,100) # 0 OR MOD(nYear,400)=0)
>
>My vote is for number 1....
>
>Anybody else...????

Well, Walter likes (2), so (1) must by force be correct.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform