1 FUNCTION The FUNCTION statement marks the beginning of a function subprogram and defines the subprogram's parameters. Example FUNCTION INTEGER COMPUTE (A, B, C$) . . . END FUNCTION 2 Syntax FUNCTION data-type func-name [pass-mech] [([formal-parm],...)] [statement]... { END FUNCTION [exp] } { FUNCTIONEND [exp] } pass-mech: { BY DESC } { BY REF } {unsubs-var-name } formal-parm: [data-type]{array-name([int-const],...)}[=int-const][pass-mech] { [ , ]... } Status: 200 OK Content-Type: text/plain; charset=ISO-8859-1 Last-Modified: Mon, 23 Oct 2000 06:15:19 GMT Script-Control: X-stream-mode=1 1 FUNCTIONEND FUNCTIONEND is a synonym for END FUNCTION. Type HELP END for more information. Status: 200 OK Content-Type: text/plain; charset=ISO-8859-1 Last-Modified: Mon, 23 Oct 2000 06:15:19 GMT Script-Control: X-stream-mode=1 1 FUNCTIONEXIT FUNCTIONEXIT is a synonym for EXIT FUNCTION. Type HELP EXIT for more information.