<i><font color="#663300">The bizoj init captures a memento of the first record (the form is based on some buffered table). Then the form is displayed. When I move to the next record, I see that comparestate is trying to match the current record with the first physical record in the table. That is the problem.</font></i>
OK, then it seems that you are selecting a new record outside of the framework, and that is causing the discrepancy. How is the record pointer getting moved? Remember that Codebook is designed around working with views. If you are directly editing a buffered table, you need to code the changes to accomodate that. Try adding a call to <b>Thisform.Cancel()</b> after you make your initial record selection; this re-sets the bizobj, including a call to SetMemento(), and should help avoid the problem you are seeing. <font color="#cc0000"> ___/ / __/ / ____/</font> Ed Leafe ©2001 Ed Leafe |