Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using dummy fields into buffered table
Message
 
To
22/05/2002 06:58:00
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00659807
Message ID:
00659970
Views:
39
Oscar,

>The problem is that some events like Refresh (triggered by activate), check if the business object has changed. MM uses the GetNextModified function in order to check for changes on a cursor with buffer mode 5, and this function funds out somehow that a record has been modified regardless of the field state been set to non-modified.

There is an "issue" with VFP where GETNEXTMODIFIED() ignores the fact that you've set a field to "unchanged". Probably the cleanest way around this is to override the business object's IsChanged() method. You could have it run the default code, and if DODEFAULT() returns True, do an additional check to see if the only fields that have changed are your custom fields.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform