Record.SelectFields

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

从输入 record 返回一个记录,该记录仅包含在列表 fields 中指定的字段。

示例:

在记录中选择字段 "Item" 和 "Price"。

使用情况:

Record.SelectFields( [OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0] , {"Item", "Price"})

输出:

[Item = "Fishing rod", Price = 100]

results matching ""

    No results matching ""