Text.ReplaceRange

構文

Text.ReplaceRange(text as nullable text, offset as number, count as number, newText as text) as nullable text

バージョン情報

テキスト値 text の位置 offset から count 文字削除し、text の同じ位置にテキスト値 newText を挿入した結果が返されます。

例 1

テキスト値 "ABGF" の位置 2 の 1 文字を新しいテキスト値 "CDE" に置き換えます。

使用方法

Text.ReplaceRange("ABGF", 2, 1, "CDE")

出力

"ABCDEF"