>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
Kevin,
Ther is NO difference between the two VFP keywords PROCEDURE and FUNCTION. There is a difference between a procedure and a function, a procedure is called with the DO command and a function is called by putting parens at the end of the name as in;
DO MyRoutine
MyRoutine()
Any PROCEDURE or FUNCTION in VFP can be called either way. With the function syntax the routine will return a value (Logical .T. by default). With the DO syntax any return value is ignored.