语法
Text.ReplaceRange(text as nullable text, offset as number, count as number, newText as text) as nullable text
关于
返回从文本值 text
中的位置 offset
开始删除一些字符 count
,然后在 text
中的相同位置插入文本值 newText
的结果。
示例 1
使用新文本值“CDE”替换文本值“ABGF”中位置 2 的单个字符。
使用情况
Text.ReplaceRange("ABGF", 2, 1, "CDE")
输出
"ABCDEF"