FUNCTION...END FUNCTION Statement Programming Examples FUNC_EX.BAS is a program file in the subdirectory ADVR_EX that illustrates the use of the FUNCTION statement. To look at the program in the View window and, optionally, to run the program, load FUNC_EX.BAS using the File menu's Open Program command. The program uses a recursive function (a function that calls itself) to find the length of a string.