Finding the index of something in the datagrid

Bob Sneidar bobs at
Thu Feb 17 18:38:49 EST 2011

Thanks I found it by looking at the parent script. For some reason the API I am reading does not have it. The URL is

Do I have this wrong? I only see 3 functions in the API: ColumnControlOfIndex, GetDataOfIndex, and GetDataOfLine. This might explain why I am having a hard time with DG's (not to mention the fact that my prior DG was messed up somehow). 


On Feb 17, 2011, at 3:25 PM, zryip theSlug wrote:

> On Fri, Feb 18, 2011 at 12:16 AM, Bob Sneidar <bobs at> wrote:
>> I can roll my own if necessary, but  I was wondering if there were a built in find function in a Datagrid which allowed me to get the column and row index of something I was searching for.
> Hi Bob,
> Have a look to the commands FindIndex and FindLine in the API.
> By looping on the name of the columns, you should be able to get what you want.
> Best regards,
> -- 
> -Zryip TheSlug- wish you the best! 8)
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list