Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank records in grids
Message
 
 
À
16/12/1998 09:59:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00168033
Message ID:
00168058
Vues:
29
>I have a grid in a form. There is an add button.
>When a user clicks on add, I append a blank record and then disable
>the add button and enable the save and cancel buttons. I do not
>want the user to move off of the blank record. At this time they
>can. How can I keep the focus on the blank record until they click
>the cancel button or add some text to the record?
>
>Thanks,
>
>Steve Wilson

To keep them in the record, you could add code to the VALID of each textbox. There was a thread in the last week about taking into account the cancel button. I believe it involved code in the lost focus and checking what was clicked on. You could also do something with the BeforeRowColChange (Not sure if I have that exactly) event.

-Michelle
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform