Syntax
Record.AddField(
record as record,
fieldName as text,
value as any,
optional delayed as nullable logical
) as record
About
将字段添加到记录 record中,给定字段 fieldName 的名称和值 value。
示例 1
将字段 Address 添加到记录。
用法
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
输出
[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]