====== SetLength(list[, separator]) ====== Category: Text function \\ =====Description===== This function returns the number of distinct values in the //list//. \\ =====Arguments===== ^Argument^Type^Description^ |list|List (Text)|A delimited set of string values.| |separator|Text|The delimiter to use in the concatenation of the output string. If not defined, the default is comma.| **Return value type:** Number \\ =====Remarks===== All leading and trailing spaces are removed from around the list values. \\ =====Examples===== setlength("A, B") //returns 2 setlength("A;B") //returns 1 (the default separator is comma) \\ ===== See also ===== * [[syntax:functions:setcontainsall|SetContainsAll(list1, list2[, separator])]] * [[syntax:functions:setcontainsany|SetContainsAny(list1, list2[, separator])]] * [[syntax:functions:setdifference|SetDifference(list1, list2[, separator])]] * [[syntax:functions:setintersection|SetIntersection(list1, list2[, separator])]] * [[syntax:functions:setsort|SetSort(list[, separator])]] * [[syntax:functions:setunion|SetUnion(list1, list2[, separator])]]