Just curious:
is the SetLoopPosition() safe? I mean, if someone deletes the record between calling SetLoopPosition() will it position on the right record, e.g.:
SetLoopPosition()
//someone deletes record here
SetLoopPosition()
Also I can see the below code
SetLoopPosition(CUr,RepSpec.long2);
CUr.Code = frcc;//is this really needed if we set the position already?
CUs = true;
while (LoopMain(CUr,1,CUs)) begin