Question: what is the difference between procedure and function in delphi?
Answer: In Delphi, there are generally two types of subroutines: a ​function and a procedure. The usual difference between a function and a procedure is that a function can return a value, and a procedure generally will not do so. A function is normally called as a part of an expression.