Creating a Search Field

Gregory Lypny gregory.lypny at videotron.ca
Sat Apr 26 14:54:53 EDT 2008


Thank you Jacqueline,

How embarrassing.  I just read the fine print at the bottom of the  
keyDown entry in the Rev dictionary.  No excuse for my oversight.  I  
think I also found the answer to the Delete key issue there too.

Regards,

	Gregory


On Sat, Apr 26, 2008, at 1:00 PM, Jacqueline wrote:

> The problem is that the newly-typed letter isn't in the field when you
> retrieve the field contents in the first line; it doesn't get placed  
> in
> the field until the last line where you pass keydown. That means you
> will always be testing agains the previous contents of the field,  
> rather
> than the new contents.
>
> One way to fix it is to change the beginning of the handler like this:
>
> on keydown pKey
>   put me & pKey into searchString
>
> That way you will always have the latest entry.




More information about the use-livecode mailing list