閱讀英文

共用方式為


Record.SelectFields

語法

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

關於

根據輸入 record,傳回只包含清單中指定欄位 fields 的記錄。

範例 1

選取記錄中的 "Item" 和 "Price" 欄位。

使用方式

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

輸出

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