Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global count
Message
 
 
To
07/02/2012 06:44:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01534489
Message ID:
01534658
Views:
55
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform