Replace Function
- 업데이트 날짜:2025-07-21
- 1분 (읽기 시간)
Replace Function
Syntax
Number Replace(String string, Number startIndex, Number numCharsToReplace, String replacementString)
Return Value
This function always returns 0.
Purpose
This function replaces the given number of characters at the specified index with the replacement string. If you pass a property for the string parameter, the function updates the contents of the property.
Parameters
string as String
The string in which to replace the specified characters.
startIndex as Number
The zero-based index of the first character to replace.
numCharsToReplace as Number
The number of characters to replace.
replacementString as String
The string to insert in place of the specified characters.