Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Functions or procedures
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00809351
Message ID:
00809375
Vues:
30
>>>Hi Jeff,
>>>
>>>In VFP there's no difference between FUNCTION and PROCEDURE.
>>
>>This is true if you ignore that Procedures by default have parameters (arguments) passed by reference i.e. the values passed can be modified in the procedure and any changes can still be seen in the calling routine after returning from the procedure. Functions on the other hand, by default receive parameters by value - so no chance of accidental modification. (see SET UDFPARMS TO)
>
>You're wrong. The difference you're talking about is in the way you call FUNCTION/PROCEDURE not in the way you decalre them.

Thanks for the clarification. I hadn't realized that the comparison was restricted to the declaration part.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform