Missing split option?
Richard Gaskin
ambassador at fourthworld.com
Wed May 18 11:03:10 EDT 2016
Bob Sneidar wrote:
>> On May 18, 2016, at 07:36 , Richard Gaskin wrote:
>>
>> This morning it seemed natural enough to me to take this data:
>>
>> ID Name Email
>> 101 Richard rg at somedomain.com
>>
>> ...and turn that into an array where the first line determines the
>> key names and the second line consists of the values using this:
>>
>> split tData by column with cr and tab
>>
>> I found that when splitting by column the "with" clause throws an
>> error.
>
> "by | using | with" are synonyms so far as I can tell from the
> dictionary. Should be:
>
> split tData with cr and tab
Thanks, Bob, but the problem is that when using the split command with
delims the engine presumes you want to split by row, with no option
(AFAIK) for splitting by column.
The line you wrote would give me an array like this:
Key Value
---- ---------------------------
ID Name Email
101 Richard rg at somedomain.com
...but what I'm hoping to get is:
Key Value
---- ---------------------------
ID 101
Name Richard
Email rg at somedomain.com
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list