Skip to main content

Type.RecordFields

Returns a record describing the fields of a record type with each field of the returned record type having a corresponding name and a value.

Syntax

Type.RecordFields(
type as type
) as record

Remarks

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 ].

Examples

Example #1

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

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

Result:

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

Category

Type