>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.