Used to return a result of the user-defined aggregate function in the SQL statement.
property OnFinal: TLiteFunctionFinalEvent;
Use the OnFinal event handler to return a result of the function. The resulting value of the function has to be passed back using the ResultValue variable.