Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is PARAMETERS?
Message
De
24/08/2001 11:36:32
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
24/08/2001 09:51:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00548260
Message ID:
00548695
Vues:
17
>>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
Fil
Voir

Click here to load this message in the networking platform