Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid behavior
Message
From
21/10/2002 18:11:13
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
21/10/2002 15:46:36
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00713638
Message ID:
00713697
Views:
19
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform