Table of contents
TOC
Collapse the table of content
Expand the table of content

Type.ForFunction

Owen Duncan|Last Updated: 5/22/2018

Type.ForFunction(signature as record, min as number) as type

About

Creates a function type from signature, a record of ReturnType and Parameters, and min, the minimum number of arguments required to invoke the function.

Example 1

Creates the type for a function that takes a number parameter named X and returns a number.

Type.ForFunction([ReturnType = type number, Parameters = [X = type number]], 1)

type function (X as number) as number

© 2018 Microsoft