Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Have ENTER key move cursor down?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00186425
Message ID:
00186481
Views:
18
If you do this and use any key other that Enter to leave the field, you will not run the movenext() function until the next time the Enter key is hit...

I would just trap for the key (chr(13)) in the Valid or LostFocus event and do whatever is appropriate...

Joe

>Could you set when you enter this field. i.e. the text1.lostfocus or text1.gotfocus on this column. (probably got focus)?
>TO:
>ON KEY LABEL ENTER movenext()
>
>Then have a function like this:
>function movenext
> skip 1
> *set foxu to the first column
> _screen.Activeform.gridname.column1.text1.setfocus()
> ON KEY LABEL
>endfunc
>
>You will want to check for eof() and such.
>
>Remember to set back the
>ON KEY LABEL
>
>Just an idea. But hope that helps a bit.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform