General information
Category:
Coding, syntax & commands
>Hi, Naoto:
>
>>Which KeyPress() event? The Form or TextBox? If the one in the Form object, did you set KeyPreview to .T. ?
>
>1) Textbox.KeyPress()
>
>2) Yes. KeyPreview is set to .T.
>
>Anyway you must understand before posting this I put code after IF !A... and. after IF !B and the code worked. So CHRSAW() returns .F. despite there are keystrokes remaining in the buffer.
>
> Héctor
If you're using the TextBox method, then you don't really need (nor want) to set the KeyPreview of the form to .T. -- if I'm not mistaken, you set this so that the form's method would take precedence over the individual controls.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only