Type.FunctionRequiredParameters

语法

Type.FunctionRequiredParameters(type as type) as number  

简介

返回一个数字,该值指示调用函数输入 type 所需的最小参数数。

示例 1

查找函数 (x as number, optional y as text)所需的参数数。

使用情况

Type.FunctionRequiredParameters(type function (x as number, optional y as text) as any)

输出

1