>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement