The following is from the LiveCode 9.6.2 dictionary
If you use the as set form the split command converts the passed variable to an array with the keys being equal to the original list and the values being true.
For example, the following statements create an array:
Code: Select all
put "A apple;;B bottle;;C cradle" into myVariable
split myVariable by ";;" and space
# resultant array looks like this:
KEY VALUE
A apple
B bottle
C cradle
Second, how does LiveCode know what the original keys are?
The input can be a string, so the "keys" could be any number of characters "terminated" by some particular character.
Given the above, this means that "as set" is assuming some particular format for how the input is constructed.
Yet that format is NOT stated, it is assumed that the reader knows what it is.
What is this particular input format that is needed for the "as set" version of split.
Finally, what does "values being true" mean?
Oh, a final issue (possibly because the documentation was modified but not proofread entirely) - later in the Dictionary documentation for split it refers to the "second form" of split and then proceeds to describe the split by row and column. "Split as set" is the second type in the list of types of split shown at the top of the Dictionary entry for split.