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