Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single exit-point
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00640316
Message ID:
00640518
Vues:
25
>>>Hi Sergey,
>>>
>>>>< pre >
>>>>Or even shorter
LOCAL llresult
>>>>llresult = .T.
>>>>llresult = llresult And StepOne()
>>>>llresult = llresult And StepTwo()
>>>>llresult = llresult And StepThree()
>>>>
>>>
>>>How about,
>>>
llresult = StepOne() AND StepTwo() AND StepThree()
>>Return llresult
>>
>>
>>OR
>>
RETURN StepOne() AND StepTwo() AND StepThree()
>>
>>:-)
>
>It might be even smaller if you use shorter function names... :)))

#DEFINE S1 StepOne()
#DEFINE S2 StepTwo()
#DEFINE S3 StepThree()
RETU S1 AND S2 AND S3
:-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform