Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard /Cursor Control
Message
From
13/02/2007 10:25:36
 
 
To
13/02/2007 10:21:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01195131
Message ID:
01195135
Views:
12
>Hi all
>
>I can use a little help.
>
>I am trying to control the cursor on a form using keyboard strokes.
>
>Example;
> A form has several rows of data input fields. Using the Up & Down Arrow keys
> I want to set the focus to the first field in each row.
>
>I believe I must use the KeyPress Event but I do not know what the code like.
>
>No examples in the help.
>
>Terry
***KeyPress event
LPARAMETERS nKeyCode, nShiftAltCtrl
If nKeyCode=5  && it is UP ARROW, see all codes in Help under INKEY
  ... your code here ...
  NODEFAULT
Endif
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform