Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What means parameters
Message
De
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:
01220899
Vues:
32
>>>In my function I got the message missing parameters
>>>
>>>Then I looked into another function I saw the parameters:
>>>
>>>*****************************************************************
>>>LPARAMETERS tcSource, tcDestination, tcAction, tlUserCanceled
>>>*****************************************************************
>>>
>>>What are parameters ?
>>>Are they variables ?
>>>
>>>Could anybody explain ? because I never used them before
>>>
>>>Moises
>>
>>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform