Text.ReplaceRange

Syntax

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

About

返回从位置开始的文本值text中删除多个字符的结果,count然后将文本值newText插入到同一位置textoffset

示例 1

将文本值“ABGF”中第 2 位的单个字符替换为新的文本值“CDE”。

用法

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

输出

"ABCDEF"