Detecting which column was clicked in a Table field

J. Landman Gay jacque at hyperactivesw.com
Wed May 26 14:36:38 EDT 2010


Mark Stuart wrote:
> Hi All,
> How do I return the column number that the user clicked in?
> I know how to get the selectedLine of a Table field, but I'd like to
> know which column of the selectedLine the user clicked into.

Something like this:

  put word 4 of the clickchunk into tCharNum
  subtract (the number of chars in line 1 to \
     (word 2 of the clickline)-1 of me) +1 from tCharNum
  set the itemdel to tab
  put the number of items in char 1 to tCharNum of the value of the 
clickLine

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list