Now you must declare that FUNCTION and PROCEDURE is the same in VFP. Or do you see any diffence, except declaration?
>OK, a quick overview of functions and procedures in VFP.
>
>Given this code
>
>FUNCTION DoSomething(param1, param2)
>
>* code that does something
>
>RETURN someValue
>
>
>It looks like a function. It smells like a function, but it may in fact not be a function.
>
>I can call it like this
>
>value1 = 12
>value2 = "Hi there"
>? DoSomething(value1, value2)
>
>
>and it will behave like a function. The parameters are passed by value and the return value is display on _SCREEN.
>
>But, I can also call it like this
>
>value1 = 12
>value2 = "Hi there"
>DO DoSomething WITH value1, value2
>
>
>Here, it's a procedure. The return value is ignored and the parameters are passed by reference.
>
>Additionally, I can define DoSomething this way and it will still work exactly as before
>
>PROCEDURE DoSomething
>LPARAMETERS param1, param2
>
>* code that does something
>
>RETURN someValue
>
>
>
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]