共用方式為


Text.Insert

語法

Text.Insert(
    text as nullable text,
    offset as number,
    newText as text
) as nullable text

關於

傳回將文字值 newText 插入至文字值 text 中位置 offset 的結果。 位置從數字 0 開始。

範例 1

在 "ABD" 的 "B" 與 "D" 之間插入 "C"。

使用方式

Text.Insert("ABD", 2, "C")

輸出

"ABCD"