Value.ReplaceType
แทนที่ชนิดของค่า
Syntax
Value.ReplaceType(
value as any,
type as type
) as any
Remarks
แทนที่ชนิดของ value
ด้วย type
ที่ระบุ
Examples
Example #1
แทนที่ชนิดเริ่มต้นของระเบียนด้วยชนิดที่เฉพาะเจาะจงมากขึ้น
Type.RecordFields(
Value.Type(
Value.ReplaceType(
[Column1 = 123],
type [Column1 = number]
)
)
)[Column1][Type]
Result:
type number
Category
Values.Types