Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hate Nested IFs? Consider this...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01086217
Message ID:
01086307
Vues:
10
>>Mark,
>>and why not with more conditions in ONE line ;o)
>>
>>LOCAL llSuccess
>>llSuccess = .F.
>>IF 1st_Logical_Test AND 2nd_Logical_Test AND 3rd_Logical_Test
>>   llSuccess = .T.
>>ENDIF
>>RETURN llSuccess
>
>Or even
>
>
>llSuccess = 1st_Logical_Test AND 2nd_Logical_Test AND 3rd_Logical_Test
>
>
>Although I do not believe it was Mark's point <g>

Right. That was not my point. My point was addressing nested IFs for those instances where putting all this on one line does not work well for the developer (or for the NEXT developer for that matter).
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform