使用英语阅读

通过


Record.AddField

语法

Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record

关于

给定字段 fieldName 的名称和值 value,将字段添加到记录 record

示例 1

将字段地址添加到记录。

使用情况

Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")

输出

[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]