Type.ForRecord

About

Returns a Record type from a fields record.

Syntax

Type.ForRecord(fields as record, open as logical) as type  

Arguments

Argument Description
fields The record to convert.
open A logical value indicating if the returned type should be an open record.

Example

Type.ForRecord(  
[  
X = [Type = type number, Optional = false],   
Y = [Type = type number, Optional = true]], true)  
equals type [ X = number, optional Y = number,...   
]