For the complete documentation index, see llms.txt. This page is also available as Markdown.

StringBuilderDelete

Removes characters from start to end, both 1-based and inclusive.

Method Signature

StringBuilderDelete(stringBuilder=[stringBuilder], start=[integer], end=[integer])

Arguments

Argument
Type
Required
Description
Default

stringBuilder

stringBuilder

true

The StringBuilder to delete from.

start

integer

true

The 1-based start position (inclusive).

end

integer

true

The 1-based end position (inclusive).

Examples

Delete a range with stringBuilderDelete()

Removes characters using 1-based, inclusive start and end positions.

sb = sb{'Hello World'};
stringBuilderDelete( sb, 6, 11 );
writeOutput( sb.toString() );

Result: Hello

Member usage

Result: Hello

Last updated

Was this helpful?