Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What means parameters
Message
 
 
À
29/04/2007 11:30:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01220881
Message ID:
01220900
Vues:
16
>>>A function or procedure is a bit of code that can be called over and over again, to do some specific task. (FUNCTION and PROCEDURE is the same in VFP.)
>>>
>>
>>I think I saw an interesting page describing difference between FUNCTIONS and PROCEDURES at Sergey Berezniker's web-site, but it was later removed for some reason.
>
>AFAIK, the only difference is how it is called, i.e.:
>
>
>do MyFunc with SomeValue
>* vs.
>MyFunc(SomeValue)
>
>
>... but not in the definition as a FUNCTION or PROCEDURE.
>
>The difference in the sample code is that by default, in the first case variables are passed by reference, in the second case, by value.
>
>But, I think it doesn't matter whether the function is declared as a FUNCTION or as a PROCEDURE.

Yes, in VFP it doesn't really matter, though in general function should return a value and the procedure usually should not.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform