Detecting word location of a user in a field.

J. Landman Gay jacque at hyperactivesw.com
Sun Jan 30 12:23:18 EST 2005


On 1/29/05 12:55 PM, Glen Bojsza wrote:

> I was wondering if it possible to detect when a user is in a
> particular word location in a field.
> 
> I am trying to test for when a user uses a tab key but only when in
> the word 5 location of a field.

Yes:

get the number of words in char 1 to (word 4 of the selectedchunk) of 
fld <myfield>

This will give you the number of the word containing the insertion point.

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


More information about the use-livecode mailing list