Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
...how to tell if Grid row has changed.
Message
De
27/07/2000 12:08:21
 
 
À
27/07/2000 11:32:27
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00397581
Message ID:
00397671
Vues:
12
Hi Cindy,
Thanks for the input. My thinking on that was that AfterRowColChange was too late because if the user answers "Cancel" to the "Do you want to save?" question then I don't want them to leave that record. However, if I do this then do a locate in the recordSource table to find the record that I just left, will the grid reflect this row change?

>Add a property to the grid or the form which will hold the PK (second choice >is RECNO()) of the record you're on.

>In the AfterRowColChange() compare the PK of the current row to the PK in the >property. If it's different, you know you're on a different record.

>If it's different, update the PK in the property, and do whatever other stuff >like highlighing the row.
Paul A. Busbey
Victoria Insurance
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform