>Can anyone tell me the difference between a PROCEDURE and a FUNCTION.
>
>I thought there was a difference in FP/DOS, but doesn't apply with VFP?
>
>Any ideas?
>Thanks
>Kev
There is really no difference other than the syntax. The difference is in how they're called. If you create a PROCEDURE or FUNCTION named myRoutine, then if you "DO myRoutine" it's called as a procedure, but if you use "myRoutine()" it's called as a function. The main difference is that, by default, parameters are passed to procedures by reference but are passed to functions by value. You can override this behavior, see UDFPARMS for more info. Both can return a value.
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.