Code created by a user that returns a value. User-defined functions include stand-alone programs saved with .PRG extensions, as well as procedures and functions contained inside a program. See also function, parameter.