ListQualify()

Inserts a string at the beginning and end of list elements.

ListQualify( list=string, qualifier=string, delimiters=string, elements=string, includeEmptyFields=boolean );

Returns: String

Argument Description Default
list
string, required

a string list

qualifier
string, required

string to insert before and after the list elements specified in the elements parameter.

delimiters
string, optional

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

Alias: delimiter

,

elements
string, optional

which type of element are qualified

  • all (default): all elements
  • char: elements that are composed of alphabetic characters

all

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

//Simple function with different delimiter(/)
writeOutput(listQualify("string/Lucee/susi/LAS","^","/")&"<br><br>");

//Member function strList="Lucee,ColdFusion,LAS,SUSI"; writeDump(strlist.listQualify('|'));

See also