Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental Search
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01563696
Message ID:
01563761
Vues:
149
>Dear Expert
>
>I am trying to enter data in grid from second grid like incremental search as shown in attachment.
>
>But the problem is when I enter data in column2 and press Enter key then control automatically goes to second row.
> It must remain in first row.
>
>
>
>Form is attached, please help

Just a quick shot in the dark but try setting form.KeyPreview = .T.
and in the grid column.text1 put this code in the keypress event
if lastykey() = 13
nodefault
endif

This turns off the enter key while on the grid cell. You can add other code inside the if..endif if you want something else to happen.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform