Description
Identifies a program to the compiler as a function. The Compile Function line must be the first line in the program. The parameters that follow name specify the arguments that will be passed when this function is called from within another program.
Syntax
[Compile] Function name ([[datatype] parameter, ...]) statements Return expression
Parameters
The Function declaration has the following parameters.
Parameter | Description |
---|---|
name | Any legal identifier may be used as the name of the function. A Return statement must include a return value located at a logical termination of the program. |
datatype | OpenInsight for Workgroups does not require data typing of parameters. |
parameter | At least one parameter is required. Multiple parameters are delimited with commas. Specify void as a parameter if no parameters are desired. The calling procedure has to provide the same number of arguments as are specified in the called function. |
See also
Declare, Return. Refer to the sample application provided with OpenInsight for example functions.