<i><font color="#663300">And quickly, before Ed goes on vacation... When I did that I get this error:
Error #: 1912 Message: Operation is invalid for a General field. Line #: 51 Code: IF NOT (OLDVAL(lcFld) == CURVAL(lcFld)) Method: conflictcheck Object: idatabehavior
What should I do? Punt and use the table for this form only????</font></i>
No, that's a bug. I guess that not too many people have run tests of this stuff with general fields. I've made the change in the source, but so that you can get going now, make this change to the ConflictCheck() method of the cDataBehaviorClass of cBhavior.vcx: near the end of the code for that method there is a FOR loop. Change it to read:
<code>* Cycle through the fields, and compare their original values to the current ones in the source table. FOR lnCnt = 1 TO lnFields lcFld = lcAlias + "." + laFields[lnCnt, 1] *** EGL: 2002.2.14 13:36 - Exclude General fields from checking IF TYPE(lcFld) == "G" LOOP ENDIF IF NOT (OLDVAL(lcFld) == CURVAL(lcFld)) lnRetVal = ERROR_UPDATE_CONFLICT EXIT ENDIF
ENDFOR</code>
Let me know if that fixes your problem. <font color="#cc0000"> ___/ / __/ / ____/</font> Ed Leafe ©2002 Ed Leafe |