Finding the index of something in the datagrid
bobs at twft.com
Thu Feb 17 17:38:49 CST 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 http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/3461-Data-Grid-API
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 twft.com> 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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode