Getting current line number of a table field.

Bob Sneidar bobsneidar at
Wed Feb 14 11:33:24 EST 2018

the mouseControl will give you the control number. If you get the long id of control (word 2 of the mouseControl) you will have the clicked object. Courtesy Trevor Devore. 

Bob S

> On Feb 14, 2018, at 08:24 , dunbarx via use-livecode <use-livecode at> wrote:
> You know, I have given advice many times to people trying to find the
> selected field in a DG. The target  is always of the form, for example,
> "field Col 3 0005".
> But how does the focussedObject return similar data in a table field? The
> fact that is does is marvelous indeed, but I never would have found that,
> and if I checked the dictionary, i definitely never would have thought of
> it.
> A table field, after all, is but a single field, and the focusedObject ought
> to return a control reference, not a non existent "cell" gizmo.
> At the very least, the dictionary should include this valuable variant of
> the property. And the user guide should have it in bold.
> Craig
> --
> Sent from:
> _______________________________________________
> 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