>Len,
>Looks good to me! The risk, slight though it may be, is that some other coder will come along and edit it without thinking of the consequences and convert it back to
>
THIS.TOPFILE= IF BOF() OR EOF()
>thereby destroying the intent of the code.
>So you need some comments!
>
IF BOF() OR EOF()
> THIS.TOPFILE = .T.
>*ELSE
>* leave THIS.TOPFILE alone!
>ENDIF
>
I agree that, it would be commented in such a way as to indicate the TOPFILE is only set if at BOF oe EOF, otherwise unchanged. But this is a risk with all code changes, whether by yourself or someone else.
Len Speed