Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A File size function?
Message
 
To
16/07/1997 13:28:35
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00040249
Message ID:
00040265
Views:
30
>Gilberto,
>
>the following function works in vfp30
>you can try it in foxpro windows 2.6
>
>FUNCTION FileSize(tcFileName)
> *-- Returns the size of a file. SET COMPATIBLE must be ON for
> *-- FSIZE() to return the size of a file. Otherwise, it returns
> *-- the size of a field.
> LOCAL lcSetCompatible, lnFileSize
>
> lcSetCompatible = SET('COMPATIBLE')
> SET COMPATIBLE ON
> lnFileSize = FSIZE(tcFileName)
> SET COMPATIBLE &lcSetCompatible
> Return lnFileSize
>ENDFUNC


Really neat function to get a file size, indeed.

Thanks.
For every bug fixed, there is a bigger bug not yet discovered.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform