>Without ALL it randomly misses to REPLACE the logical value with .T., though the percentage is very low 2% say. But as the records are not registered=.t. they get deleted next time round (my logic) messing up the whole data integrity.
>
>
SEEK m.id
>REPLACE dbf.registered WITH .T. WHILE dbf.id = m.id
> ...
I was forgetting: the logical keyword in this case would be REST instead of ALL. That means, "from this point on, until the end of the file (or until the WHILE condition fails)".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)