RemoveChars()

Removes characters from a string.

RemoveChars( string=string, start=number, count=number );

Returns: String

Argument Description
string
string, required

String in which to search.

start
number, required

Start position of search from the left.

count
number, required

Count of characters to be removed.

Examples

writeDump(removeChars("Hi buddy!, Have a nice day.",10,18));//Expected output: Hi buddy!

//Member function str="I love Lucee"; writeDump(str.removeChars(1,7));//Expected output: Lucee

See also