Cleans an array by removing blank elements and/or removing duplicates.
The cleaned array.
|Array||The dynamic array to be cleaned. (REQUIRED)|
|Option||Determines the kind of clean operation to perform. (OPTIONAL)|
|Delim||The delimiter that separates the elements in the given Array. (OPTIONAL)|
Need to tidy up your array? Use the Clean service to quickly remove blanks and duplicates from your dynamic array. Simply pass it your array and its delimiter. You can use the Option parameter to control the cleaning process.
- To remove duplicates in addition to removing blanks, set the Option parameter to "TrimAndMakeUnique".
- To remove only trailing blanks, set the Option parameter to "TrimTrailing". Doing so will leave blanks inside the array and only remove blanks at the end of the array.
- Omitting the Option parameter or setting it to "Trim" will simply remove all blanks, including trailing blanks.
The Delim paramater can also be omitted, in which case it will assume @FM.
Note: This only operates at a 1-dimensional level. This will not work as expected with 2-dimensional data returned from controls like the EDITTABLE.