How to split an array to get a special column as index?

Mike Bonner bonnmike at gmail.com
Mon Aug 5 05:54:41 EDT 2013


Someone will probably correct me, but I suspect a re-arrangement is the
only way. And if you're doing that, you might as well just use a repeat for
each line loop and manually build the array as you go.


On Mon, Aug 5, 2013 at 1:55 AM, Tiemo Hollmann TB <toolbook at kestner.de>wrote:

> Hello,
>
> when having a simple table, I can split this table into an one dimensional
> array by using "return and the table separator", e.g.
>
> split myTable by return and ";"
>
> to get the first column of the table as the array index.
>
> Is there any trick to split the same table getting any other column as the
> array index? Or do I have to create a copy of the table first and rearrange
> the columns, so that always the wanted index is the first column?
>
> Thanks for any hints.
>
> Tiemo
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list