Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a procedure like a method syntax
Message
From
22/04/2009 12:03:27
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
22/04/2009 10:42:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01395833
Message ID:
01395908
Views:
94
>>1. No need to change PROCEDURE to FUNCTION. You can call either one as a function.
>
>Oh, I didn't really plan to change them; was just asking it theoritcally to prove the matter.

Unlike most, I do not use a procedure library at all. That means I never have to say SET PROCEDURE TO nor worry about which one is open. A .prg like this...

myudf.prg
LPARAMETERS tn1, tc2
*whatever
*optional return

can be called by DO myudf with params or MyUDF(params). Lots of typing savings excluding all those PROCEDURE and FUNCTION declarations ;)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform