Text.ReplaceRange

Syntax

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

Info

Gibt das Ergebnis zurück, das entsteht, wenn eine Reihe von Zeichen count ab der Position offset aus dem Textwert text entfernt und anschließend der Textwert newText an der gleichen Position in text eingefügt wird.

Beispiel 1

Ersetzt ein einzelnes Zeichen an Position 2 des Textwerts "ABGF" durch den neuen Textwert "CDE".

Verwendung

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

Ausgabe

"ABCDEF"