Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Question Key ENTER Pressed
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00341801
Message ID:
00341828
Views:
27
>This is a begginer question,
>
>I want to know if Key Enter is pressed ?
>
>Because i need to know when this key is pressed for to do something.
======================================================================

If no form is involved meaning if this has to be in the control of the program,
IF LASTKEY()=13
   DO Something
ENDIF

or

@2,1 GET m.QUESTION
ON KEY LABEL ENTER DO Something
READ
ON KEY LABEL ENTER && Deactivate ENTER capture
...
...
*--------------------------
PROCEDURE Something
PUSH KEY CLEAR
* Do what you have to do here
POP KEY
RETURN
Réal Philippon
www.ultra.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform