語法
Replacer.ReplaceValue(
value as any,
old as any,
new as any) as any
關於
以 old 值取代原始 value 中的 new 值。 這個取代子函式可用於 List.ReplaceValue 和 Table.ReplaceValue 中。
範例 1
以值 10 取代值 11。
使用方式
Replacer.ReplaceValue(11, 11, 10)
輸出
10
Replacer.ReplaceValue(
value as any,
old as any,
new as any) as any
以 old 值取代原始 value 中的 new 值。 這個取代子函式可用於 List.ReplaceValue 和 Table.ReplaceValue 中。
以值 10 取代值 11。
使用方式
Replacer.ReplaceValue(11, 11, 10)
輸出
10