Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lastkey() mmm...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00479344
Message ID:
00479349
Views:
37
>Hi
>I have one doubt about lastKey() to be more clear ill go to put the steps to reproduce my problem:
>
>1 in one textbox in the valid method put:
>
>Wait window (str(lastkey()))
>clear typeahead
>Wait window (str(lastkey()))
>
>2 run the form and press enter in the textbox...
>
>We have now two wait windows telling us te value returned by lastkey() isnt change :(
>
>is there any way to have the value returned by lastkey() cleared or at least changed programatically?
>
>TIA

Use the KEYBOARD command to put someother character in it and then use INKEY() to suck it up without actually using it. You'll still get whatever character you KEYBOARDed, but at least you'll know you put it there!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform