Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single exit-point
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640316
Message ID:
00640518
Views:
24
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform