Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Syntax
Combiner.CombineTextByLengths(lengths as list, optional template as nullable text) as function
About
Returns a function that combines a list of text values into a single text value using the specified lengths.
Example 1
Combine a list of text values by extracting the specified numbers of characters from each input value.
Usage
Combiner.CombineTextByLengths({1, 2, 3})({"aaa", "bbb", "ccc"})
Output
"abbccc"
Example 2
Combine a list of text values by extracting the specified numbers of characters, after first pre-filling the result with the template text.
Usage
Combiner.CombineTextByLengths({1, 2, 3}, "*********")({"aaa", "bbb", "ccc"})
Output
"abbccc***"