Missing split option?

Bob Sneidar bobsneidar at iotecdigital.com
Wed May 18 11:13:14 EDT 2016


Okay reading further it seems there are two forms: "using | with" (synonyms) and "by column". The documentation is incorrect (or else I misunderstand what "{by | using | with}" means) where it says:

Syntax:
split variable {by | using | with} primaryDelimiter [and secondaryDelimiter]
split variable {by | using | with} primaryDelimiter as set
split variable {by | using | with} {row | column}

It also seems you CAN create an array where you get named keys, but the text has to be something like:

put "A apple;;B bottle;;C cradle" into myVariable split myVariable by ";;" and space

So the first delimiter is the record delimiter, and the second is the key delimiter. In no case can I figure a way to use split in the manner you want. But it occurs to me that datagrids do this by nature. If you were to set the dgText of a data grid, then get the dgData of the same, you would get the exact effect you seek. 

Bob S


> On May 18, 2016, at 07:45 , Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
> 
> "by | using | with" are synonyms so far as I can tell from the dictionary. Should be:
> 
> split tData with cr and tab
> 
> Bob S





More information about the use-livecode mailing list