datagrid (loc of elements)

Trevor DeVore lists at
Mon Jan 17 12:12:16 EST 2011

On Sat, Jan 15, 2011 at 9:49 PM, Harald Müller <harald at> wrote:

> I try to show an card element at the loc of the selected line of a datagrid
> form.
> Is there a way to get the loc of datagrid element or will I have to put it
> inside
> the datagrid and toggle the visible when a line is hilted?

Since you are using a form you can take a look at the dgDataControlOfLine

put the dgDataControlOfLine[ the dgHilitedLine of group "DataGrid" ] of
group "DataGrid" into theControl
if theControl is not empty then
    put the loc of theControl into theLoc
end if

Take a look at the entry in the API docs:

Trevor DeVore
Blue Mango Learning Systems
LiveCode Resources for Developers:

More information about the Use-livecode mailing list