>>It was poor wording on my part. I think VFP uses the current record not the first one
to determine the lenght of the index key before it starts actual indexing. The code I provide shows that.
>
>And what would happen if there are no records?
The record pointer will be positioned at EOF. As you know, VFP treats it like there's the record with all empty fields.
--sb--