Error 117: Invalid procedure or function reference An attempt was made to assign a near procedure to a procedure variable. Procedure variables must refer to far procedures. To correct the problem: ■ Turn on the Far Calls directive under the Compiler option in the Options menu. ■ Place the procedure declaration between the {$F+} and {$F-} directives.