string.listRemoveDuplicates()

Removes duplicate values from list.

string.listRemoveDuplicates( delimiters=string, ignoreCase=boolean )

Returns: String

Argument Description
delimiters
string, optional

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

Alias: delimiter

ignoreCase
boolean, optional

if set to true, the duplicate value test will not be case sensitive

Examples

list = "apple,mango-papaya,lemon,grapes,mango-Apple,Mango-apple,mango";
res = list.listremoveduplicates();
writeDump(res);
res = list.listremoveduplicates(",",true);
writeDump(res);
res = list.listremoveduplicates("-",true);
writeDump(res);
res = list.listremoveduplicates("-");
writeDump(res);

See also