Replacer.ReplaceValue
แทนที่ค่าภายในค่าที่ป้อนที่ระบุ
Syntax
Replacer.ReplaceValue(
value as any,
old as any,
new as any
) as any
Remarks
แทนที่ค่า old ใน value เดิมด้วยค่า new ฟังก์ชันตัวแทนที่นี้สามารถใช้ใน List.ReplaceValue และ Table.ReplaceValue ได้
Examples
Example #1
แทนที่ค่า 11 ด้วยค่า 10
Replacer.ReplaceValue(11, 11, 10)
Result:
10
Category
Replacer