RegisterUserFunction

Creates a user defined function based on a script.

RegisterUserFunction <Function-Name> <Script-Name> [<min-number-args>] [<max-number-args>]

Parameters

Function-Name

Name of function. This must start with a letter and contain only letters, digits and underscores. The name must not be one of the built-in functions.

Script-Name

Name of script that will be called to execute function.

min-number-args

Minimum number of arguments required by the function. Range 0 - 7. Default=0

max-number-args

Maximum number of arguments that may be supplied to the function. Range 0 - 7. Default=7

Notes

User Defined Script Based Functions.