In This Topic
Represents an abstract base class for defining functions.
Syntax
var value; // Type: any
value = GC.Spread.CalcEngine.Functions.Function(name,
minArgs,
maxArgs,
functionDescription,
functionDescription.description,
functionDescription.parameter,
functionDescription.parameter.name,
functionDescription.parameter.repeatable,
functionDescription.parameter.optional);
function Function(
: string,
: number,
: number,
: object,
(optional) : string,
(optional) : undefined,
: string,
(optional) : boolean,
(optional) : boolean
) : any;
Parameters
- name
- The name of the function.
- minArgs
- The minimum number of arguments for the function.
- maxArgs
- The maximum number of arguments for the function.
- functionDescription
- The description object of the function.
- functionDescription.description
- The description of the function.
- functionDescription.parameter
- The parameters' description array of the function.
- functionDescription.parameter.name
- The parameter name..
- functionDescription.parameter.repeatable
- Whether the parameter is repeatable.
- functionDescription.parameter.optional
- Whether the parameter is optional.
See Also