50 likes | 177 Views
Functions & Subroutines. Page.chm. Functions. Intrinsic Functions Statement Functions External Functions. Recursive Function. RECURSIVE <type> FUNCTION fName ( <dum1> <,dum2> … < ,dumN> ) RESULT ( var ). <type> fName ( <dum1> <,dum2> … < ,dumN> ) = expression.
E N D
Functions & Subroutines Page.chm
Functions • Intrinsic Functions • Statement Functions • External Functions Recursive Function RECURSIVE<type> FUNCTION fName ( <dum1> <,dum2> … < ,dumN> ) RESULT(var) <type> fName( <dum1> <,dum2> … < ,dumN> ) = expression <type>FUNCTION fName( <dum1> <,dum2> … < ,dumN> ) var =fName( <arg1> <,arg2> … < ,argN> )
Subroutine SUBROUTINE sName( <dum1>, … <,dumN> ) CALL sName( <arg1>, … <,argN> )
Examples HTMLDOC