See also the FAQ Forum under How to use UDFs and How to write a UDF .

You can actually, have a "function within a function", demonstrated in Err() - Prints an error message on screen and writes the error into the error log which dynamically creates a new UDF via an EXECUTE() statement and then calls that UDF.
_________________________
There are two types of vessels, submarines and targets.