Type.RecordFields

Syntax

Type.RecordFields(type as type) as record

About

Returns a record describing the fields of a record type. Each field of the returned record type has a corresponding name and a value, in the form of a record [ Type = type, Optional = logical ].

Example 1

Find the name and value of the record [ A = number, optional B = any].

Usage

Type.RecordFields(type [A = number, optional B = any])

Output

[
    A = [Type = type number, Optional = false],
    B = [Type = type any, Optional = true]
]