Getting current line number of a table field.

Richmond Mathewson richmondmathewson at
Wed Feb 14 08:33:18 EST 2018

Hey-Ho . . .

I tried this script in the tableField:

on mouseDown
     put the selectedLine of me
end mouseDown

and it returned the line where I clicked.


On 14/2/2018 3:06 pm, Tim Selander via use-livecode wrote:
> Hi,
> Editing a table field (not datagrid) and need to track the number of 
> the line that is being edited. If I click into a new line, 
> "selectionchanged" will let me figure out what line I'm editing. But 
> if I hit return or tab to go to a new line, how can I track what line 
> the cursor is in? Rawkeyups and downs are being sent, but I have been 
> unsuccessful in trapping them in the table field's script.
> Any ideas?
> Much appreciated.
> Tim Selander
> Tokyo, Japan
> _______________________________________________
> 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