List.ReplaceValue

语法

List.ReplaceValue(list as list, oldValue as any, newValue as any, replacer as function) as list

关于

在值列表 list 中搜索值 oldValue,每次找到后使用替换值 newValue 将其替换。

示例 1

使用 "A" 替换列表 { "a", "B", "a", "a" } 中的所有 "a" 值。

使用情况

List.ReplaceValue({ "a", "B", "a", "a" }, "a", "A", Replacer.ReplaceText)

输出

{ "A", "B", "A", "A" }

results matching ""

    No results matching ""