Record.Field

Record.Field(record as record, field as text) as any

返回 record 中指定 field 的值。如果未找到该字段,将引发异常。

示例:

在记录中查找字段 "CustomerID" 的值。

使用情况:

Record.Field([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "CustomerID")

输出:

1

results matching ""

    No results matching ""