Whatever message this page gives is out now! Go check it out!
ListQualify(list, qualifier [, delimiters, elements, includeEmptyFields ])Parameter | Description |
includeEmptyFields | Optional. Set to yes to include empty values. |
list | A list or a variable that contains one. |
qualifier | A string or a variable that contains one. Character or string to insert before and after the list elements specified in the elements parameter. |
delimiters | A string or a variable that contains one. Characters that separate list elements. The default value is comma. If this parameter contains more than one character, ColdFusion uses the first character as the delimiter and ignores the remaining characters. |
elements |
|
<cfscript>
myList="Tokyo,Bangkok,Jakarta,Manila,Bangalore,Shanghai";
myQualify1=ListQualify(myList,"|");
myQualify2=ListQualify(myList,"@","a");
myQualify3=ListQualify(myList,"$"," ");
WriteOutput((myQualify1) & " "); // Qualifier | at the beginning and end of each item in the list
WriteOutput((myQualify2) & " "); // Qualifier @ at the beginning and end of the list; also @ at the beginning
// and end of the letter "a" in a list item
WriteOutput(myQualify3); // Qualifier $ at the beginning and end of the list
</cfscript>