Is it possible to get the clicked cell for a table field, if the table is empty?

William Prothero waprothero at gmail.com
Sat May 2 01:21:38 EDT 2020


Folks:
I have an app that requires that I be able to get the cell row and column when I click on the cell. I know a dataGrid can do this, but is it possible with a table field? I know I can get the clicked line, but what about the cell, when the table is empty.

I use, to get the line (from the lessons), but it only returns the line number: 
on mouseUp

put the clickline into msg

put return & value (the clickline) after msg

set the itemdelimiter to tab

put return & item 1 of value (the clickline) && item 2 of value (the clickline) after msg

end mouseUp

Tnx for any suggestions.
Bill

William A. Prothero
https://earthlearningsolutions.org

> On May 1, 2020, at 5:49 PM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi all. 
> 
> I’m gonna say that script only stacks cannot have behaviors eh? Reason is, I’d like to move my nested data grid behavior to a script only stack, but it occurs to me this might break the datagrid, since it’s next level behavior is the old data grid behavior button (not sure why that’s still there) then the actual script only datagrid library. 
> 
> Bob S
> 
> _______________________________________________
> 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