Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid behavior
Message
De
21/10/2002 15:46:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Grid behavior
Divers
Thread ID:
00713638
Message ID:
00713638
Vues:
53
I've placed some code in the BeforeRowChange and AfterRowChange events of a grid to trap for data changes made by the user to the contents of the grid. I'm working with a cursor created from an xml stream, so I can't use any calls back to the remote data source to check for changes to the data.
The AfterRowChange takes a snapshot of the data and stores it in a property on the form by calling "Scatter to Name". The BeforeRowChange calls a method on the form that does a scatter memvar. It then compares the memory variables with the values stored in the form object created by Scatter To Name.

When I put a break point in the code and trace through it, the changes are trapped and the code to save the data executes. When there is no break point, the code does not trap the data change and the data changes are not saved.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform