閱讀英文

共用方式為


Record.AddField

語法

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

關於

指定欄位的名稱 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."]