Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Have ENTER key move cursor down?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186425
Message ID:
00186481
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform