语法
Text.Insert(text as nullable text, offset as number, newText as text) as nullable text
关于
返回将文本值 newText
插入到位置 offset
的文本值 text
中的结果。 位置从数字 0 开始。
示例 1
在 "ABD" 中的 "B" 和 "D" 之间插入 "C"。
使用情况
Text.Insert("ABD", 2, "C")
输出
"ABCD"
Text.Insert(text as nullable text, offset as number, newText as text) as nullable text
返回将文本值 newText
插入到位置 offset
的文本值 text
中的结果。 位置从数字 0 开始。
在 "ABD" 中的 "B" 和 "D" 之间插入 "C"。
使用情况
Text.Insert("ABD", 2, "C")
输出
"ABCD"