Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to add records
Message
 
To
19/08/2003 12:31:54
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00821476
Message ID:
00821513
Views:
21
>I followed the example in the Mere Mortals Developer's Guide to make a business object updatable. Now I am trying to add records through a cListObjEdit grid object that is associated with that object. I get this error message:
>
>Error #: 107
>Message: Operator/Operand Type Message
>Line 174
>Code: IF loExecutant.BeginTransaction() != FILE_OK
>Method: Save
>Object: BusinessObject.
>
>I am using SQL Pass-Through (SPT), and I created the ID table on the backend using the SQL script file. Something else is needed, but I can't figure out what. Sound familiar to anybody?
>
>Thanks for your help,

It sounds like an include file isn't being found (or possibly one of your methods was overridden and isn't returning the DODEFAULT() value).

Open both the KBizness::KBizObj class, KExecutant::KExecutant, and CDataEnv::CSQLPassThrough classes include file (open the class, click on Class in the menu, then on "Include File"). Make sure the path is valid. If it is, try closing VFP and restarting. Open the project and do a DO STARTMM. Then do a full recompile. If that doesn't help, add code to your business object's Save() method that looks like:

SET STEP ON
RETURN DODEFAULT()

Then trace through until you hit that line of code. It BeginTransaction() of the Executant (eg. CSQLPassThrough) should return a numeric value. It sounds like it's not (a logical value is probably being returned instead).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform