Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does FSIZE() work?
Message
 
To
07/02/2002 15:23:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616888
Message ID:
00616969
Views:
30
>You may also need to add 1 if the last character is an EOF - 0x1A. The DOS based OSs seem to like adding it.
>
Rick,

Yup, the actual calculation would be:
lnfilesize = HEADER() + (RECSIZE() * RECCOUNT() + 1)
>
>>>I am trying to write a routine to check table integrity before a form's dataenvironment opens tables. I am satisfied that I cannot rely of FOPEN to get the file size because there are too many circumstances where it does not return a file handle. If I set COMPATIBLE ON then FSIZE() is supposed to return the size of a file. Does anyone know what mechanism FSIZE uses to return file size? Would it be reliable in local area network situations. I am comparing the return from FSIZE to the computation of file size based on RECCOUNT and RECORDSIZE. Thanks.
>>
>>You also need to include the header (HEADER()) amount.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform