Using Arrays

Mike Bonner bonnmike at gmail.com
Fri Jun 3 22:13:45 EDT 2011


Yep, what mark said. :) Sorry I wasn't as clear as I should have been.


>
> -- it's a two-dimensional array
> -- in C++ it's called a hash
> -- dgData[column][row] will access a single element
>
> put the dgData of group "YourGrid" into tArray
>
> put the keys of tArray -- this will give you the row names
> put the keys of tArray[1] -- this will give you the column names
>
> -- assuming you have a column names "ColumnName"
> -- this will set the "ColumnName" of the first row to "hello"
>
> put "hello" into tArray[1]["ColumnName"]
> set the dgData of group "YourGrid"  to tArray
>
> --
> -Mark Wieder
>  mwieder at ahsoftware.net
>
>
> _______________________________________________
> 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