>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)
Pete.
>
>>I've been updating an olepublic class that is used in a web server environment. The current version is in VFP5 and is an .exe server. We are evaluating whether it would be faster and more efficient to upgrade the program to VFP8 and create the server as an in-process dll.
>>
>>Anyway, I've noticed that in the foxweb samples that they use procedures for the methods, and the program I am updating uses functions. Since the samples provided with VFP tend to point you to the "right" way of doing something, should I convert my functions into procedures?
Précédent
Suivant
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