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:16:32
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
27/07/2000 12:08:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00397581
Message ID:
00397682
Vues:
13
I'm not sure how to do it within the context of what you've alreaady got. My edits take place in text boxes against a data object (so if they cancel I just dump the object) while the grid is for locating records only at this point.


>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform