Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BizObj's OnNew() Method
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
BizObj's OnNew() Method
Miscellaneous
Thread ID:
00135159
Message ID:
00135159
Views:
60
I am having a little trouble trying to add a record using a simple form created from cBizObjForm. I have minimal controls on the form with one business object that loads one view. I have a button that calls the forms New() method, which in turn calls the business objects new method. The business object appends a blank record to the view and then calls the OnNew() method which will retrieve the setting for the default value of the primary key and evaluate it.

Well, when using DBGETPROP() to retrieve the default value of the primary key, I am getting the error "No database is open or set as the current database". However, when I check the results of DBC() or SET("DATABASE"), they both return the name of the current database.

Kind of an odd problem. Thanks for the help.

By the way, I have had the same problem using VFP 5 & VFP 6.

Doug Stalter
Mammography Reporting System

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Next
Reply
Map
View

Click here to load this message in the networking platform