>Help File - VFP Table File Structure >Byte offset >4 – 7 Number of records in file >>
> lnHeaderByte8 = CHR(INT(lnCalcRecords / (256^3))) > lnHeaderByte7 = CHR(INT(lnCalcRecords / (256^2))) > > lnHeaderByte6 = CHR(INT(lnCalcRecords / 256) - ; > IIF(lnCalcRecords / 256 > 256, ; > (INT(INT(lnCalcRecords / 256) / 256) * 256), ; > 0)) > > lnHeaderByte5 = CHR(MOD(lnCalcRecords,256)) >>
>>>records byte 4 5 6 7 >>>----------------------------- >>> 3 6- 3- 0- 0 >>> 40 22-40- 0- 0 >>> 18 11-18- 0- 0 >>> 217397 18-53-81- 3 >>>>>>
>>>m.lcMyDBFFile = FILETOSTR("c:\whatever.dbf") >>> >>>m.lcString = TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,4,1))) + '-' ; >>> + TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,5,1))) + '-' ; >>> + TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,6,1))) + '-' ; >>> + TRANSFORM(ASC(SUBSTR(m.lcMyDBFFile,7,1))) >>>_cliptext = m.lcString >>>>>>