Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid behavior
Message
De
21/10/2002 18:11:13
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
21/10/2002 15:46:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00713638
Message ID:
00713697
Vues:
20
I've had mixed results with Grid commands if the Grid doesn't lose focus, maybe the Debugger takes focus off temporarily and forces the evaluation of table fields, etc. Still, it shouldn't act like that regardless...

Just ideas,

-Irv.


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

Click here to load this message in the networking platform