Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BeforeRowColChange
Message
De
20/03/1998 08:59:11
 
 
À
19/03/1998 23:57:53
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:
00085940
Vues:
40
>>>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.
>>
>>But you can catch row change using both BeforeRowColChange and AfterRowColChange.
>
>Edward,
>Thank you for your response. When AfterRowColChange fires, we have already moved into a new column (or row). The When event (may be irreversible) of the control in the new column (or row) has already been fired. Even new record may has aleardy been added.

Then you probably should rethink your algorithms and e.g. make validations, adding records,etc. in AfterRowColChange event.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform