>>There is, so far as I can tell, no difference between PROCEDURE and FUNCTION except convention. Try this:
>
>Nancy, I agree with this. I could see no difference whether you declare something as a PROCEDURE or as a FUNCTION. So I usually declare everything as FUNCTION, whether there is a return value or not.
I think another convention seems to be using PROCEDURE for methods, whether or not they return values.
>
>Let's not forget, however, that there is a big difference dependent not on the way you declare your functions, but on the way you call them:
>
>MyFunction(par1, par2) will pass parameters by value.
>
>DO MyFunction with par1, par2 will pass parameters by reference.
>
>This is independent of whether you declared MyFunction as function or procedure.
By default, yes. Again, it's not difference in FUNCTION or PROCEDURE, as you point out.
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