Even better would be to count only in the data area -
I think it is possible that the code could be in the header by chance
sometimes if the table has other record count or structure.
>i was wondering if there was a way to use a count inside a filetostr - quesiton answered.
>i was missing the 'occurs' which is what Jos actually suggested as well in a different avenue.
>thank you tore - this works very well.
>>If the table is a dbf and not too big:
>>lcData=Filetostr('timep.dbf')
>>lnCount=Occurs('|',lcData)
>>