본문으로 건너뛰기

Text.ReplaceRange

특정 범위의 문자를 제거하고 지정된 위치에 새 값을 삽입합니다.

Syntax

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

Remarks

위치 offset에서 시작하여 텍스트 값 text에서 여러 문자 count을(를) 제거한 다음 text의 같은 위치에 텍스트 값 newText을(를) 삽입한 결과를 반환합니다.

Examples

Example #1

텍스트 값 "ABGF"의 위치 2에 있는 단일 문자를 새 텍스트 값 "CDE"로 바꿉니다.

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

Result:

"ABCDEF"

Category

Text.Modification