>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).