clickChunk discrepancy

hh hh at hyperhh.de
Sat Sep 10 14:49:05 EDT 2016


> 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






More information about the use-livecode mailing list