Yep. Since I have no idea what the error code was doing, I could not assume that error code was not moving the record pointer. If you consolidate the data checks and use a flag so NO other code is called before issung the REPLACE commands, then you can be assured the record pointers are not being moved.
>That is what the code does. I was just wondering if second set of SEEKs were necessary. U think is was done to be sure record pointer was not moved.
>
>>How many checks are you doing? Set a flag instead:
>>llCommit = .t.
>>llCommit = iif(seek(valuea,tablea,ordera), llCommit, .f.)
>>llCommit = iif(seek(valueb,tableb,orderb), llCommit, .f.)
>>llCommit = iif(seek(valueX,tableX,orderX), llCommit, .f.)
>>if llCommit
>> * do replaces here
>>else
>> * do error stuff here
>>endif
Mark McCasland
Midlothian, TX USA