> Richmond M. wrote:
> 'Twould be nice . . . if:
> clickChunk always yielded a 'word', and clickLine always yielded a line.

This works for here in a field's script (also listField).

function clickWord
  return word clickWordNum() of me
end clickWord

function clickWordNum
  if the clickChar is in space&tab&cr then -- exclude whitespace
    return 0
  else
    return the num of words of char 1 to (word 2 of the clickCharChunk) of me
  end if
end clickWordNum



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to