List.ReplaceValueList.ReplaceValue

構文Syntax

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

バージョン情報About

oldValue のリスト list 内で値を検索し、出現した値をそれぞれ置換値 newValue に置き換えます。Searches a list of values, list, for the value oldValue and replaces each occurrence with the replacement value newValue.

例 1Example 1

リスト {"a", "B", "a", "a"} 内のすべての "a" 値を "A" に置き換えます。Replace all the "a" values in the list {"a", "B", "a", "a"} with "A".

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