On 18/8/00 1:14 pm, opus.species <[EMAIL PROTECTED]> wrote:

> How to check the content of a field after each keystroke ?
> 
> That is not possible in a keydown or keyup or rawkeydown or rawkeyup
> handler, because these handlers are invoked before the field is modified.
> 
> I would like to perform something like :
> 
> on keyUp
> pass keyUp -- so that the field is updated
> checkThisField -- the checking handler
> end keyUp
> 
> but -of course- that don't work :-(
> 
> Is there a trick ?

You have to remember that there are two handlers for this: keyDown, which is
sent before the field is updated, and keyUp.  E.g.:

on keyDown pWhichKey
  if pWhichKey is not a number then exit keyDown
  pass keyDown
end keyDown

on keyUp pWhichKey
  --key has already been added to field
end keyUp

Regards,

Kevin

> Claude

Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to