Getting current line number of a table field.

Richmond Mathewson richmondmathewson at gmail.com
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.

Richmond.

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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list