Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BeforeRowColChange
Message
 
À
19/03/1998 06:15:26
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00085562
Message ID:
00085619
Vues:
35
>>>In a VFP grid, how can we carry out a row level validation as the browse...valid... in FP2.6? When BeforeRowColChange fires, there is no way to know whether the user is changing row or column. Checking the lastkey is not feasible because the column/row change may be caused by a mouse click.
>>Ben,
>>
>>Use the table level validation rule in the database, if you must allow editing in your grid.
>
>Jim,
>
>Thank you very much for your good suggestion. But validation rules are not flexible enough and do not apply to views and free tables. Is there any other way to emulate a row level validation in grids?
Ben,

You can set validation rules for views, but not for free tables. There is no other way to get validation ruels on a record basis in grids that is bulletproof. That is one of the many reasons that I NEVER allow editing in a grid. I woudl give the other reasons I don't allow edits in grids but it would exceed the length of a UT message and I'd get in trouble with Michel :-).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform