>Is there any difference in Procedure or Function in a program?
There is no difference in the two keywords PROCEDURE and FUNCTION.
There are difference in behavior based on how you call a routine.
DO MyProcedure
Is calling a procedure while;
MyProcedure()
Is calling a function.
A function has parameters passed by value by defualt while a procedure gets its prarmeters passed by reference by default.
A DO Whatever call does not return any value while a Whatever() call does return a value (.T. by default).
You can read the help fiel to see how to pass parameters other than by the default method for each type of call.