Hi Dragan,
>Actually, you have to check for recno()=0 on empty tables
Are you sure? So far, that situation has always returned 1 for me.
>but that's all - no error.
Not quite. LOCATE RECORD accepts any value that RECNO() returns on the current table. If you pass a record number that doesn't exist either as a regular record or as a phantom record, it still errors. However, almost everytime I have to go to a certain record number, it is because I want to restore the record position that the cursor had when FoxPro entered a procedure or method. In this case, I can ensure that the record number is still valid providing that I haven't requeried the cursor. What I can't ensure is that I'm not on EOF.
Christof
--
Christof