DeleteRangeCharOf

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
delete char <Start> to <Finish> of <Target>
Associationscom.livecode.char
Summary

Deletes the chars between indices Start and Finish in Target.

Parameters
NameTypeDescription
Start

An expression which evaluates to a valid integer index of Target.

Finish

An expression which evaluates to a valid integer index of Target.

Target

A string container.

Example
variable tVar as String
put "surround" into tVar
delete char 2 to 4 of tVar -- tVar contains "sound"
Description

Replaces the chars between the given indices with the empty string.

Note: It is an error if either Start or Finish are out of range.

Tagsstrings