Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure vs Function
Message
 
To
21/08/2006 03:59:00
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01147203
Message ID:
01147336
Views:
21
>Is there any difference in Procedure or Function in a program?

There is no difference in the two keywords PROCEDURE and FUNCTION.

There are difference in behavior based on how you call a routine.

DO MyProcedure

Is calling a procedure while;

MyProcedure()

Is calling a function.

A function has parameters passed by value by defualt while a procedure gets its prarmeters passed by reference by default.

A DO Whatever call does not return any value while a Whatever() call does return a value (.T. by default).

You can read the help fiel to see how to pass parameters other than by the default method for each type of call.
Previous
Reply
Map
View

Click here to load this message in the networking platform