>>>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
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)