Live search box

dunbarx dunbarx at aol.com
Mon Apr 30 22:54:10 EDT 2018


Hi.

This is fun to do. Make two fields. In the target field, the one you will
type into, set a custom property "rawText" to some long list of words,
perhaps chapter 1 of your favorite novel. It is a good idea to strip all
punctation from that text before setting the prop.

In that field, place this handler:

on keyDown tKey
   if the length of me > 2 then put line lineOffset(me,the rawText of me) of
the rawText of me into fld 2
   pass keydown
end keyDown

Craig Newman



--
Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html




More information about the Use-livecode mailing list