Perhaps the index is corrupted. Try rebuilding it.
>Hi all
>
>I have a function skel like below:
>
>
>FUNCTION myFunc
>
> PARAMETERS myID
>
> SELECT myDBF
> SET ORDER TO TAG myField
>
> = SEEK(myID)
>
> SCAN WHILE myDBF.myField = myID
> SELECT myOtherDBF
> *** myOtherDBF manipulation logic goes here
>
> SELECT myDBF
> DELETE
> ENDSCAN
>
>
>This fails, what am I doing wrong. Just change the WHILE to FOR, though slower will never fail.
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)