Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter in a text box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00393414
Message ID:
00394025
Views:
23
>>There are five ways out of a test box (at least for the purposes of this discussion: You reach the number of characters supplied in the input mask, press enter, tab, shift + tab, or click on another control. If CONFIRM is OFF, in the first case you'll get the last key press. If you don't reach the number of characters in the input mask, pressing Enter returns 13, tab, 9, shift + tab 15, and clicking on another control 7. However, if CONFIRM is set to ON, then LASTKEY() will always return 13 when Enter is pressed or another control is clicked on, and tab and shift + tab the same as before.
>
>
Remarks
>
>The values returned by LASTKEY( ) are the same as the values returned by INKEY( ). See INKEY( ) for a list of keys and their return values.
>
>LASTKEY( ) is updated when you move between controls.

Yeah, that's right. However, in the Valid event, you haven't yet moved to another control. It's up to Valid to make that determination. That's why you can check either INKEY() or LASTKEY()
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform