It only solves problem with the header but binary data could be in a record as well in case of integer, datetime, etc fields.
>Maybe I'm wrong, but is this will accurate if the value "|" (0x7C or 124 decimal) appear in .DBF header?
>
>I think this code below will prevent that case
>
>
>lcData=FILETOSTR("timep.dbf")
>
>*!* skip until first record
>lnFirstRecordOffset = CTOBIN(SUBSTR(m.lcData, 9, 2), "2RS")
>
>lnCount=OCCURS("|", SUBSTR(m.lcData, m.lnFirstRecordOffset + 1))
>
--sb--