<i><font color="#663300">I wanted to created default records when the apps start, this is what I have done.</font></i>
First off, you should think about the design of your app, and where your code is going. Your example has VFP data commands hard-coded into your app. While the triggering of these default records may be the responsibility of the app, the actual creation and storage belongs in the bizobj. I would add a custom method to the bizobj to create these records, and another to determine if new records need to be created, etc. In other words, if you are making decisions about the MAccounts table, those decisions belong in the bizobj for that table.
Second, when you say that calling the New() and Save() methods of the bizobj "doesn't work", what exactly does that mean? Have you stepped through the code to see why it isn't working? <font color="#cc0000"> ___/ / __/ / ____/</font> Ed Leafe ©2002 Ed Leafe |