Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid behavior
Message
From
21/10/2002 15:46:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Grid behavior
Miscellaneous
Thread ID:
00713638
Message ID:
00713638
Views:
52
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.
Next
Reply
Map
View

Click here to load this message in the networking platform