Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control - detecting row change - Row level validati
Message
 
 
À
02/01/2002 14:35:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00599898
Message ID:
00599901
Vues:
15
>Happy new year all.
>
>I am using the Grid control in VFP6 SP5 and need to perform a record level validation before the user moves to a new record. So far, I have found no easy way to even detect when the user moves to another row (by mouse or by keyboard) so that I can run a validation method on the record before the new row gets focus. I want to execute a validation method once just before the row change, not after each column change, and if possibly prevent the row change if the validation fails. What I am looking for is something like the version 2.6 browse ... Valid ... - record-level validation.
>
>Grid.BeforeRowColchange() appears to only provide the new column number and not the new row that will next receive focus. Grid.activerow property still contains the current row at this point and not the new row.
>
>AfterRowColchange only seems to provide the new column number and the grid has already moved record position. (Too late for validating the previous record.)
>
>Grid.valid() only seems to executes then the grid loses focus, not when the record position changes.
>
>I'm sure that I am just missing something fairly simple due to my inexperience with the grid control, but I'm spending too much time on this problem
>
>Any help will be greatly appreciated.
>
>Elmer

See this message from Marcia Akins Forum: Visual FoxPro Category: Forms & Form designer Title: Re: How to perform record - level validation on table buffered Thread #590634 Message #590652
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform