ListDeleteAt

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

ListDeleteAt( list, position [, delimiters [, includeEmptyFields ] ] )

Returns: String

Argument Description Default
list
string, required

a string list

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

writeOutput(listDeleteAt("I,love,lucee,testFile", 4));//Expected output I,love,lucee
//Member Function
strList="This,is,a,the,test,file";
writeDump(strList.listDeleteAt(3));//Expected output This,is,the,test,file

See also