Bingo! Thats the ticket! Thanks Sergey.
Glenn
>Hi Glenn,
>
>A cursor file has extension "TMP".
IF JUSTEXT(DBF("mycursor")) = "TMP"
> * Cursor
>ELSE
> * Filtered cursor
>ENDIF
>
>>How can a routine determine if a cursor is truly a (disk based) table or only a temporary cursor. The filename can not necessarily establish that the dbf() in question is a cursor or table.