Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjMaintenanceForm Problem
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00664634
Message ID:
00666773
Views:
19
Nerissa,

>In the codes, the ischanged() method returns .T. because function GETNEXTMODIFIED in cdataenv.vcx ccursor class returns -1. I am not setting any blank cursor or initial blank record because my bus. object in page 3 is using a parameterized view whose value is taken from its parent bus. object in page 1.

>Does it have something to do with lAutoNewRecord property? But this property is for "No List" form and I am using clistobjedit on page 3 and the form is cbizobjmaintenanceform.

That's right...GETNEXTMODIFIED returns the record number of the first record that was modified. If you have added a new record GETNEXTMODIFIED returns a -1 because that is the record number that Visual FoxPro assigns to the first new record in a cursor.

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
Reply
Map
View

Click here to load this message in the networking platform