I guess there's no reason for us to ask "why"?    But since ESC is not 
mappable, and I'm assuming you want a quick keystroke to clear the field, how 
about 
locating a button with an accelerator letter?  Put a button with the words "C
lear memo field" and then an Alt-C would clear it using the property command.  
Would that work well enough?

Karen

 
> In a given form (in a particular NOTE field) I'd like to trap the ESC key 
> so that it doesn't exit the form but instead clears out whatever the user has 
> typed in the field.
> 
> Unfortunately my standard technique of mapping ESC to TAB and then checking 
> LASTKEY() in the field's ON EXIT eep doesn't work as ESC is not mappable.  
> And the new ON KEYPRESS EEP doesn't help because this field is MEMO, not a 
> text 
> edit, and KEYPRESS is not available.
> 
> I don't want to use the "turn off all form exit methods" setting on the form 
> property sheet since I still wouldn't get to run my code when the ESC key is 
> hit, and I don't want to turn off the X closing feature.
> 
> Does anyone have any suggestions?
> --
> Larry
> 
   

Reply via email to