Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defaults in cBizObjNoListForm
Message
From
16/10/2000 13:21:02
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
15/10/2000 21:10:08
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00429646
Message ID:
00429854
Views:
32
>All,
>
>I set default values for my view in the OnNew method of my business object. I use the view in a cBizObjNoMaintForm. I need a way to ignore the default values when determining if the record is empty when leaving the form. I get a "Do you want to save the changes first" message.
>
>Any ideas?
>
>Rex

That message comes from the IsChanged() method of the primary business object. It uses the field state, so if you use SetFldState() in your OnNew() you can trick it into thinking nothing has changed. Kevin does this when he sets fields having default values defined in the table.
Previous
Reply
Map
View

Click here to load this message in the networking platform