次の方法で共有


Text.ReplaceRange

構文

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

バージョン情報

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

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

使用方法

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

アウトプット

"ABCDEF"