Passing Function Parameters

Passing a Function as a parameter may be accomplished using either of the following syntax options as the ValueType for the parameter:

FunctionName(parameters)

PrototypeName

FunctionNameThe name of a function, the type of which may be passed as a parameter.
parametersThe parameter definitions for the FunctionName parameter.
PrototypeNameThe name of a previously defined function to use as the type of function that may be passed as a parameter.

The following code provides examples of both methods: