Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BeforeRowColChange
Message
De
19/03/1998 09:10:09
 
 
À
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:
00085627
Vues:
31
>>>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 might try this. You will still use the BeforeRowColChange event to fire your validation, however, have a look at the Grid.ActiveRow property. But do excercise caution. It may not return the same row number as would be returned by RECNO() in an indexed table.
Sanjay Kapoor

Relatively speaking is a conversation with Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform