Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
...how to tell if Grid row has changed.
Message
From
27/07/2000 12:08:21
 
 
To
27/07/2000 11:32:27
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00397581
Message ID:
00397671
Views:
11
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.
Paul A. Busbey
Victoria Insurance
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform