Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure vs Function
Message
 
À
21/08/2006 03:59:00
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01147203
Message ID:
01147336
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform