Record.RemoveFields

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

返回一个记录,该记录从输入 record 中删除列表 fields 中指定的所有字段。如果指定的字段不存在,将引发异常。

示例:

从记录中删除字段 "Price"。

使用情况:

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

输出:

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

示例:

从记录中删除字段 "Price" 和 "Item"。

使用情况:

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

输出:

[CustomerID=1]

results matching ""

    No results matching ""