共用方式為


Record.RemoveFields

語法

Record.RemoveFields(
    record as record,
    fields as any,
    optional missingField as nullable number
) as record

關於

傳回一個記錄,該記錄從輸入 fields 中移除清單 record 所指定的所有欄位。 如果指定的欄位不存在,則會拋出例外狀況。

範例 1

從記錄中移除 "Price" 欄位。

使用方式

Record.RemoveFields([CustomerID = 1, Item = "Fishing rod", Price = 18.00], "Price")

輸出

[CustomerID = 1, Item = "Fishing rod"]

範例 2

從記錄中移除 "Price" 和 "Item" 欄位。

使用方式

Record.RemoveFields([CustomerID = 1, Item = "Fishing rod", Price = 18.00], {"Price", "Item"})

輸出

[CustomerID = 1]