@Bluenose
So many choices!!
My added bit would be to deal with the spaces outside of the split.
ClearCollect(yourCollection,
ForAll(Split(Label11.Text, "|"), Trim(Result))
)
Or, to reduce the overhead of the heavy-weight collection which is not needed (unless you have some need to perform add/remove/update functions on the results):
Set(splitItems,
ForAll(Split(Label11.Text, "|"), Trim(Result))
)
As @JR-BejeweledOne pointed out, you don't need to duplicate it into a collection - it can simply be used on any control that has an Items property.
@Nogueira1306 Your ForAll is used backward - ForAll is a function that produces a table. It takes two parameters, the table to iterate over and the schema for the record to be produced. In your formula, your Collect statement is returning a table of the collection and putting it in each iteration in a Value column as the result of the ForAll.
Also since if no column is specified, then Value will be assumed - there is no need to specify the Value column.
The above formulas both produce tables that have a Value column (because it is not specified).
I hope this is helpful for you.