string.listDeleteAt()

Deletes an element from a list. Returns a copy of the list, without the specified element.

string.listDeleteAt( position [, delimiters [, includeEmptyFields ] ] )

Returns: String

Argument Description
position
number, required

position of the element to delete

delimiters
string, optional

Characters that separate list elements. The default value is comma.

Alias: delimiter

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

strList="This,is,listdeleteat,example";
	writeDump(strList.listDeleteAt(4));
	writeoutput("<br>");
	writedump("one@two@ @four".listDeleteAt(3,"@",true));

See also