Split an Array to Numeric with 2 Dimensions
Monte Goulding
monte at appisle.net
Sun Aug 19 00:20:38 EDT 2018
I think what you are after is an enhancement request here https://quality.livecode.com/show_bug.cgi?id=9950 <https://quality.livecode.com/show_bug.cgi?id=9950>
For now you would need to use numeric keys for the columns:
split theList by return and “|”
put theList[2][1] -> orange
> On 19 Aug 2018, at 2:43 am, Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I decide to study up to improve my array management skills. Looked up the dictionary: element, columnDel, RowDelimiter etc Tools I never used. But I can't fine a "one pass" split that takes a dBase dump like this and makes a 2nd dimension. Other than to do it "manually"
>
> Also I thought, after reading the dictionary, that the "element" would be "1" in
>
> uDataArray[1][someValue]
>
> But instead I was getting "someValue" -- so I am not understanding something there.
>
> =====
>
> apples|https://www.washington.com/neutral <https://www.washington.com/neutral>
>
> orange|https://www.california.com|citrus <https://www.california.com|citrus/>
>
> peaches|https://www.idaho.com|sweet <https://www.idaho.com|sweet/>
More information about the use-livecode
mailing list