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]