function

A preprogrammed calculation that can be carried out on request from any point in a Visual FoxPro program. Because a function takes in one or more arguments and returns a single value, it can be embedded in an expression. Functions contain a pair of parentheses that distinguish them from commands. For example, ROW( ) is a function. Functions can be from Visual FoxPro or user-defined. See also argument, expression, user-defined function.