John,
The keywords PROCEDURE and FUNCTION are totalling interchangable. There is no difference in the effect of them. IN a class definition they will both create a method. In any other use they create a routine that will either be a function or a procedure depending on how it is called at runtime.
Eessentially, the difference between PROCEDURE and FUNCTION is spelling.