string.listQualify()

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

string.listQualify( qualifier=string, delimiters=string, elements=string, includeEmptyFields=boolean )

Returns: String

Argument Description
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
includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

strList="Lucee,ColdFusion,LAS,SUSI";
	writeDump(strlist.listQualify('|'));
<span class="nv">strList</span><span class="o">=</span><span class="s2">&quot;Lucee\ColdFusion\LAS\SUSI&quot;</span><span class="p">;</span>
<span class="nf">writeDump</span><span class="p">(</span><span class="nf">strlist.listQualify</span><span class="p">(</span><span class="s1">&#39;|&#39;</span><span class="p">,</span><span class="s2">&quot;\&quot;</span><span class="p">));</span>

See also