Finding the index of something in the datagrid

Bob Sneidar bobs at twft.com
Thu Feb 17 19:46:29 EST 2011


Well I am pretty sure it was broken, not saying it was anyone's fault but mine. What was happening was I could drag and drop from and to any column in my datagrid, but if I dragged or dropped to the 3rd column, functions returning the index of the dropped on line returned empty and my scripts threw errors. 

After I deleted that data grid and recreated it, (after copying the scripts to a text file of course) and then creating a new data grid from scratch, everything worked properly again. Weird huh? 

I must have inadvertently whacked something in some column template or other and I was too frustrated to try and find out what it was. 

Bob


On Feb 17, 2011, at 4:29 PM, zryip theSlug wrote:

> In my experience, be extremly carefull before to conclude your
> datagrid is broken. It could depend how you explored the parent
> script. If you opened the library script by using such command as "go
> to stack revdatagridlibrary" and then editing the datagrid button, the
> library could stop working properly resulting of odds effects in your
> opened datagrids. In this case, close your copy of LC and reopen it.
> Then, test your work again.





More information about the use-livecode mailing list