OpenBD Wiki

From OpenBD
Revision as of 12:37, 29 November 2008 by Alan (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

ListRemoveDuplicates()

This function takes a list and will remove all the duplicate values.

Contents

Parameters

ListRemoveDuplicates( list, [delimiter] )

  • list: a string representing the list of objects
  • delimiter: the delimitor character; defaults to comma (,)

Returns

This function returns the newly created list without any duplicates

Example

<cfset myList = "a,b,b,c,c,c,c,d,e,f,f">
<cfset myList = ListRemoveDuplicates( myList )>

/* returns: "a,b,c,d,e,f" */

Notes

This function assumes whitespace to a character, so "a " is not the same as "a"

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools